mirror of
https://github.com/datajerk/gameserverclient.git
synced 2025-02-11 01:30:39 +00:00
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
|
|
CL = cl65
|
|
CL_FLAGS = -t none --listing --list-bytes 100
|
|
C2D = c2d
|
|
CC = gcc
|
|
CC_FLAGS = -Wall -O3 -I/opt/local/include -L/opt/local/lib -lqrencode -lm
|
|
|
|
all: gameserverclient.dsk
|
|
|
|
qrbytes: qrbytes.c
|
|
$(CC) $(CC_FLAGS) -o $@ $<
|
|
|
|
qrcodes.inc: qrcodes.pl qrbytes
|
|
curl -sL http://asciiexpress.net/gameserver/links.html | \
|
|
sort -t\" -k 5 | \
|
|
./qrcodes.pl >$@
|
|
|
|
titles.inc: titles.pl
|
|
curl -sL http://asciiexpress.net/gameserver/links.html | \
|
|
sort -t\" -k 5 | \
|
|
./titles.pl >$@
|
|
|
|
gameserverclient: gameserverclient.s titles.inc qrcodes.inc cc65-2.13.3/bin/cl65
|
|
$(CL) $(CL_FLAGS) $<
|
|
|
|
gameserverclient.textpage: Makefile
|
|
( \
|
|
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 | text2page >$@
|
|
|
|
gameserverclient.dsk: gameserverclient.textpage gameserverclient
|
|
$(C2D) -t gameserverclient.textpage gameserverclient,800 $@
|
|
|
|
test: c_ballblazer_game.tiff c_ballblazer_loading.tiff c_ballblazer_piratesplash.tiff c_ballblazer_qrcode.tiff c_ballblazer_selected.tiff c_gameserverdisk_mainscreen.tiff c_gameserverdisk_splash.tiff test.sh test.scrp all
|
|
./test.sh
|
|
|
|
cc65-sources-2.13.3.tar.bz2:
|
|
curl -sLO https://github.com/mrdudz/cc65-old/raw/master/cc65-sources-2.13.3.tar.bz2
|
|
|
|
cc65-2.13.3/bin/cl65: cc65-sources-2.13.3.tar.bz2
|
|
bunzip2 -c cc65-sources-2.13.3.tar.bz2 | tar xf -
|
|
(cd cc65-2.13.3; /usr/bin/sed 's!/usr/local!'${PWD}'/cc65-2.13.3!' <make/gcc.mak >Makefile; make -j4 bins || make bins && make install || true)
|
|
|
|
clean:
|
|
rm -rf qrbytes *.o *.lst *.dsk *.inc *.textpage gameserverclient *.aif cc65-sources-2.13.3.tar.bz2 cc65-2.13.3
|
|
|