-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98c1ee0
commit 1b766c6
Showing
105 changed files
with
7,904 additions
and
5,501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,19 @@ | ||
# | ||
# Slave MegaZeux makefile | ||
# | ||
include Makefile.platform | ||
include Makefile.in | ||
|
||
SUBDIRS = contrib/gdm2s3m/src contrib/libmodplug/src src | ||
|
||
all: subdir | ||
include Makefile.platform | ||
|
||
subdir: | ||
list='$(SUBDIRS)'; \ | ||
for subdir in $$list; do \ | ||
pwd=`pwd`; \ | ||
cd $$subdir && make && cd $$pwd; \ | ||
done; | ||
cd contrib/libmodplug/src && make && cd ../../.. | ||
cd contrib/gdm2s3m/src && make && cd ../../.. | ||
cd src && make && cd .. | ||
|
||
clean: | ||
list='$(SUBDIRS)'; \ | ||
for subdir in $$list; do \ | ||
pwd=`pwd`; \ | ||
cd $$subdir && make clean && cd $$pwd; \ | ||
done; | ||
cd contrib/libmodplug/src && make clean && cd ../../.. | ||
cd contrib/gdm2s3m/src && make clean && cd ../../.. | ||
cd src && make clean && cd .. | ||
|
||
install: | ||
mkdir -p ${PREFIX}/share/megazeux && \ | ||
chown root:root ${PREFIX}/share/megazeux && \ | ||
chmod 0755 ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 mzx_default.chr ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 mzx_blank.chr ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 mzx_smzx.chr ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 mzx_ascii.chr ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 smzx.pal ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 mzx_help.fil ${PREFIX}/share/megazeux && \ | ||
install -o root -m 0644 config.txt /etc/megazeux-config && \ | ||
install -o root -m 0755 ${TARGET} ${PREFIX}/bin && \ | ||
ln -sf ${TARGET} ${PREFIX}/bin/megazeux | ||
distclean: clean | ||
rm -f src/config.h | ||
cp -f arch/Makefile.dist Makefile.platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# placebo makefile | ||
|
||
all: | ||
@echo "Please run config.sh before make!" | ||
@echo "usage: ./config.sh <linux|win32|macos> <prefix>" | ||
@echo " e.g.: ./config.sh win32 /usr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
## | ||
# gdm2s3m Makefile fragment | ||
## | ||
# | ||
# src/ makefile | ||
# | ||
|
||
.PHONY: all clean | ||
include ../../../Makefile.in | ||
include ../../../Makefile.platform | ||
|
||
.SUFFIXES: .c | ||
# must be build with c99 | ||
CFLAGS += -std=c99 | ||
|
||
CFLAGS := -Wall -std=c99 | ||
o := o | ||
# | ||
# objects to build | ||
# | ||
|
||
gdm2s3m_base = . | ||
gdm2s3m_cflags := -W -Wmissing-format-attribute -Wpointer-arith -Wcast-align | ||
gdm2s3m_cflags += -Wwrite-strings -pedantic -I${gdm2s3m_base} | ||
gdm2s3m = ${gdm2s3m_base}/libgdm2s3m.a | ||
objs = error.o gdm.o s3m.o utility.o gdm2s3m.o | ||
|
||
gdm2s3m_objs = \ | ||
${gdm2s3m_base}/error.${o} ${gdm2s3m_base}/gdm.${o} \ | ||
${gdm2s3m_base}/s3m.${o} ${gdm2s3m_base}/utility.${o} \ | ||
${gdm2s3m_base}/gdm2s3m.${o} | ||
subdir: libs | ||
|
||
${gdm2s3m_base}/%.${o}: ${gdm2s3m_base}/%.c | ||
${CC} ${CFLAGS} ${gdm2s3m_cflags} -c $< -o $@ | ||
|
||
all: ${gdm2s3m} | ||
|
||
${gdm2s3m}: ${gdm2s3m_objs} | ||
ar crus ${gdm2s3m} ${gdm2s3m_objs} | ||
libs: ${objs} | ||
ar crus libgdm2s3m.a ${objs} | ||
|
||
clean: | ||
rm -f ${gdm2s3m} ${gdm2s3m_objs} | ||
rm -f ${objs} libgdm2s3m.a |
Oops, something went wrong.