aboutsummaryrefslogtreecommitdiffstats
path: root/kvx/unittest/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kvx/unittest/Makefile')
-rw-r--r--kvx/unittest/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/kvx/unittest/Makefile b/kvx/unittest/Makefile
new file mode 100644
index 00000000..fcbede2d
--- /dev/null
+++ b/kvx/unittest/Makefile
@@ -0,0 +1,13 @@
+# Needs to be called from CompCert root directory
+# $ make -f kvx/unittest/Makefile postpass_test
+
+include Makefile.extr
+
+TEST_CMX=kvx/unittest/postpass_test.cmx
+
+UNITTEST_OBJS:=$(shell $(MODORDER) $(TEST_CMX))
+
+postpass_test: $(UNITTEST_OBJS)
+ @echo "Linking $@ $(UNITTEST_OBJS)"
+ @$(OCAMLOPT) -o $@ $(LIBS) $(LINK_OPT) $+
+