c2d/Makefile

35 lines
740 B
Makefile
Raw Normal View History

WIN32GCC = /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc
2017-04-09 02:58:11 +00:00
all: bin/c2d bin/text2page
2017-04-09 02:58:11 +00:00
windows: bin/c2d.exe bin/text2page.exe
dist: all windows
2017-04-09 00:41:29 +00:00
c2d.h: c2d.h.0 asm/loader.s makeheader
./makeheader
bin/c2d: c2d.c c2d.h
2017-04-09 03:44:36 +00:00
gcc -Wall -Wno-missing-braces -I. -O3 -o $@ $< -lm
bin/c2d.exe: c2d.c c2d.h
2017-04-09 03:44:36 +00:00
$(WIN32GCC) -Wall -Wno-missing-braces -I. -O3 -o $@ $<
2017-04-09 02:58:11 +00:00
bin/text2page: text2page.c
2017-04-09 03:44:36 +00:00
gcc -Wall -O3 -o $@ $< -lm
2017-04-09 02:58:11 +00:00
bin/text2page.exe: text2page.c
2017-04-09 03:44:36 +00:00
$(WIN32GCC) -Wall -O3 -o $@ $<
2017-04-09 02:58:11 +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-09 03:56:22 +00:00
gameserverclient.text: Makefile
figlet -c -w 40 -f slant "Game Server Online Client" >$@
2017-04-09 03:44:36 +00:00
2017-04-15 19:48:21 +00:00
test: gameserverclient gameserverclient.mon gameserverclient.text dist
./test.sh