aboutsummaryrefslogtreecommitdiff
path: root/tests/xok/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-07-18 21:33:50 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-07-18 21:33:50 +0300
commit94b767679fc68c51aa0c80bdada35b9978989199 (patch)
tree711af40c89140a9add7db30cf6a81861a3df1013 /tests/xok/Makefile
parent1564f79cfc7d790e15298d28f52b4c5c216ce9e5 (diff)
downloadngc-94b767679fc68c51aa0c80bdada35b9978989199.tar.gz
ngc-94b767679fc68c51aa0c80bdada35b9978989199.zip
add supertemplate handling
Diffstat (limited to 'tests/xok/Makefile')
-rw-r--r--tests/xok/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/xok/Makefile b/tests/xok/Makefile
new file mode 100644
index 0000000..210982c
--- /dev/null
+++ b/tests/xok/Makefile
@@ -0,0 +1,15 @@
+FILES != echo *.c
+TARGETS := $(FILES:%.c=build/%)
+
+all: $(TARGETS)
+
+build/%: %.c ../../ngc1
+ @mkdir -p build
+ @gcc -E $< -o $@.i
+ @../../ngc1 $@.i > $@.c
+ @gcc $@.c -o $@
+ @./$@ | (grep -c 'OK' >/dev/null && echo "OK $@" || echo "FAIL $@")
+
+.PHONY: clean
+clean:
+ $(RM) -rf build