2017-04-02 01:06:25 +00:00
|
|
|
|
|
|
|
WIN32GCC = /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc
|
|
|
|
|
2017-04-16 03:24:44 +00:00
|
|
|
all: bin/c2d bin/text2page bin/page2text
|
2017-04-02 01:06:25 +00:00
|
|
|
|
2017-04-16 03:24:44 +00:00
|
|
|
windows: bin/c2d.exe bin/text2page.exe bin/page2text.exe
|
2017-04-02 01:06:25 +00:00
|
|
|
|
|
|
|
dist: all windows
|
|
|
|
|
2017-04-23 02:13:22 +00:00
|
|
|
c2d.h: c2d.h.0 asm/loader.s asm/bar.s makeheader
|
2017-04-09 00:41:29 +00:00
|
|
|
./makeheader
|
|
|
|
|
2017-04-22 16:33:53 +00:00
|
|
|
bin/c2d: c2d.c c2d.h holes.h
|
2017-04-09 03:44:36 +00:00
|
|
|
gcc -Wall -Wno-missing-braces -I. -O3 -o $@ $< -lm
|
2017-04-02 01:06:25 +00:00
|
|
|
|
2017-04-22 16:33:53 +00:00
|
|
|
bin/c2d.exe: c2d.c c2d.h holes.h
|
2017-04-09 03:44:36 +00:00
|
|
|
$(WIN32GCC) -Wall -Wno-missing-braces -I. -O3 -o $@ $<
|
2017-04-02 01:06:25 +00:00
|
|
|
|
2017-04-22 16:33:53 +00:00
|
|
|
bin/text2page: text2page.c holes.h
|
2017-04-09 03:44:36 +00:00
|
|
|
gcc -Wall -O3 -o $@ $< -lm
|
2017-04-09 02:58:11 +00:00
|
|
|
|
2017-04-22 16:33:53 +00:00
|
|
|
bin/text2page.exe: text2page.c holes.h
|
2017-04-09 03:44:36 +00:00
|
|
|
$(WIN32GCC) -Wall -O3 -o $@ $<
|
2017-04-09 02:58:11 +00:00
|
|
|
|
2017-04-16 03:24:44 +00:00
|
|
|
bin/page2text: page2text.c
|
|
|
|
gcc -Wall -O3 -o $@ $< -lm
|
|
|
|
|
|
|
|
bin/page2text.exe: page2text.c
|
|
|
|
$(WIN32GCC) -Wall -O3 -o $@ $<
|
|
|
|
|
2017-04-02 01:06:25 +00:00
|
|
|
clean:
|
2017-04-09 02:59:35 +00:00
|
|
|
rm -f bin/* *.dsk c2d.h c2d.h.1
|
|
|
|
(cd asm; make clean)
|
2017-04-02 16:56:23 +00:00
|
|
|
|
2017-04-09 03:56:22 +00:00
|
|
|
gameserverclient.text: Makefile
|
2017-04-22 18:08:02 +00:00
|
|
|
( \
|
|
|
|
figlet -c -w 40 -f slant "Apple ][ Game Server Online!" | \
|
|
|
|
perl -p -e 's/^ +\n$$//' | \
|
|
|
|
sed '1,6s/^/ /'; \
|
|
|
|
echo; \
|
|
|
|
text="THE APPLE ][ AE WARESHOLE IS BACK!"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
text="CASSETTE PORT FTW! ---- ASCIIEXPRESS.NET"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
) | tail -24 >$@
|
2017-04-09 03:44:36 +00:00
|
|
|
|
2017-04-23 02:13:22 +00:00
|
|
|
barloader.text: Makefile
|
|
|
|
( \
|
|
|
|
echo; \
|
|
|
|
figlet -c -w 40 -f poison "c2d"; \
|
|
|
|
echo; \
|
|
|
|
text="C2D (CODE TO DISK) BUILT-IN LOADER"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
echo; \
|
|
|
|
text="LOADING GAME SERVER CLIENT ..."; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
echo; \
|
|
|
|
text="________________________________________"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
text="________________________________________"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
echo; \
|
|
|
|
echo; \
|
|
|
|
text="HTTPS://GITHUB.COM/DATAJERK/C2D/"; printf "%*s\n" $$((($${#text}+40)/2)) "$$text"; \
|
|
|
|
) | tail -24 >$@
|
|
|
|
|
|
|
|
barloader.textpage: barloader.text bin/text2page
|
|
|
|
bin/text2page <$< >$@
|
|
|
|
|
|
|
|
gameserverclientbar.dsk: barloader.textpage gameserverclient bin/c2d
|
|
|
|
bin/c2d -b -t $< gameserverclient,800 $@
|
|
|
|
|
2017-04-22 18:12:40 +00:00
|
|
|
fulltest: gameserverclient gameserverclient.mon gameserverclient.text dist
|
2017-04-22 16:33:53 +00:00
|
|
|
EMU=1 WIN=1 ./test.sh
|
|
|
|
|
2017-04-22 18:12:40 +00:00
|
|
|
disttest: gameserverclient gameserverclient.mon gameserverclient.text dist
|
2017-04-22 16:33:53 +00:00
|
|
|
EMU=0 WIN=1 ./test.sh
|
|
|
|
|
|
|
|
test: gameserverclient gameserverclient.mon gameserverclient.text all
|
|
|
|
EMU=0 WIN=0 ./test.sh
|
2017-04-02 16:56:23 +00:00
|
|
|
|