-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.cygwin
33 lines (22 loc) · 2.24 KB
/
Makefile.cygwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: clean test sertest
all: test/enforth test/enforthsimple test/enforthtest test/enforthserialtest
clean:
rm -f utility/enforth_definitions.h utility/enforth_jumptable.h utility/enforth_tokens.h test/enforth.exe test/enforthtest.exe test/enforthserialtest.exe test/enforthsimple.exe
test: test/enforthtest
test/enforthtest --abort
sertest: test/enforthserialtest
test/enforthserialtest --abort
utility/enforth_definitions.h: enforth.c definitions/core.edn definitions/core-ext.edn definitions/double.edn definitions/enforth.edn definitions/string.edn definitions/tools.edn
cd DefGen && lein.bat run ../utility $(addprefix ../, $+)
utility/enforth_jumptable.h: enforth.c definitions/core.edn definitions/core-ext.edn definitions/double.edn definitions/enforth.edn definitions/string.edn definitions/tools.edn
cd DefGen && lein.bat run ../utility $(addprefix ../, $+)
utility/enforth_tokens.h: enforth.c definitions/core.edn definitions/core-ext.edn definitions/double.edn definitions/enforth.edn definitions/string.edn definitions/tools.edn
cd DefGen && lein.bat run ../utility $(addprefix ../, $+)
test/enforth: enforth.h enforth.c utility/enforth_definitions.h utility/enforth_jumptable.h utility/enforth_tokens.h test/enforth.c
cc -g -Wno-narrowing -I. -I./utility -o $@ -DENABLE_STACK_CHECKING=1 enforth.c test/enforth.c -lcurses
test/enforthsimple: enforth.h enforth.c utility/enforth_definitions.h utility/enforth_jumptable.h utility/enforth_tokens.h test/enforthsimple.c
cc -g -Wno-narrowing -I. -I./utility -o $@ -DENABLE_STACK_CHECKING=1 enforth.c test/enforthsimple.c
test/enforthtest: enforth.h enforth.c utility/enforth_definitions.h utility/enforth_jumptable.h utility/enforth_tokens.h test/catch.hpp test/enforthtesthelper.h test/enforthtesthelper.c test/test_core.cpp test/test_enforth.cpp test/enforthtest.cpp
c++ -g -Wno-narrowing -I. -I./utility -o $@ -DENABLE_STACK_CHECKING=1 enforth.c test/enforthtesthelper.c test/test_enforth.cpp test/test_core.cpp test/enforthtest.cpp
test/enforthserialtest: test/catch.hpp test/enforthtesthelper.h test/enforthtesthelper.c test/test_core.cpp test/test_enforth.cpp test/enforthserialtest.cpp
c++ -g -Wno-narrowing -o $@ test/enforthtesthelper.c test/test_enforth.cpp test/test_core.cpp test/enforthserialtest.cpp