2014-11-24 00:26:22 +00:00
|
|
|
|
2016-01-07 03:17:39 +00:00
|
|
|
WIN32GCC = /usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i586-mingw32-gcc
|
2014-11-24 00:26:22 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
all: bin/c2t bin/c2t-96h
|
2014-11-24 00:26:22 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
windows: bin/c2t.exe bin/c2t-96h.exe
|
2016-01-07 03:17:39 +00:00
|
|
|
|
|
|
|
dist: all windows
|
|
|
|
|
2016-01-08 22:54:46 +00:00
|
|
|
clean: testclean
|
2016-01-09 02:49:20 +00:00
|
|
|
rm -f c2t.h bin/c2t bin/c2t-96h bin/c2t.exe bin/c2t-96h.exe
|
2014-11-24 00:26:22 +00:00
|
|
|
cd asm; make clean
|
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
bin/c2t: c2t.c c2t.h
|
|
|
|
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c
|
2015-12-31 19:19:07 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
bin/c2t-96h: c2t-96h.c c2t.h
|
|
|
|
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c
|
2014-11-24 00:26:22 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
bin/c2t.exe: c2t.c c2t.h
|
|
|
|
$(WIN32GCC) -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t.exe c2t.c
|
2016-01-07 03:17:39 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
bin/c2t-96h.exe: c2t-96h.c c2t.h
|
|
|
|
$(WIN32GCC) -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h.exe c2t-96h.c
|
2016-01-07 03:17:39 +00:00
|
|
|
|
2014-11-24 13:17:49 +00:00
|
|
|
c2t.h: mon/dos33.boot1.mon mon/dos33.boot2.mon asm/autoload.s asm/diskload2.s asm/diskload3.s asm/diskload8000.s asm/diskload9600.s asm/fastload8000.s asm/fastload9600.s asm/fastloadcd.s asm/inflate.s
|
2014-11-24 00:26:22 +00:00
|
|
|
./makeheader
|
2016-01-06 06:09:38 +00:00
|
|
|
|
2016-01-08 23:19:30 +00:00
|
|
|
test: bin/c2t-96h bin/c2t-96h.exe tests/test.md
|
|
|
|
cd tests; ./test.sh test.md
|
|
|
|
|
|
|
|
quicktest: testclean bin/c2t-96h tests/quicktest.md
|
|
|
|
cd tests; ./test.sh quicktest.md
|
2016-01-08 22:54:46 +00:00
|
|
|
|
|
|
|
testclean:
|
|
|
|
cd tests; rm -f passed test.log
|