summaryrefslogtreecommitdiffstats
path: root/test/module.rules
diff options
context:
space:
mode:
Diffstat (limited to 'test/module.rules')
-rw-r--r--test/module.rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/module.rules b/test/module.rules
new file mode 100644
index 000000000..34004b97f
--- /dev/null
+++ b/test/module.rules
@@ -0,0 +1,20 @@
+$(eval $(call import.MODULE.rules,TEST))
+
+test.build: $(TEST.exe)
+
+$(TEST.exe): | $(dir $(TEST.exe))
+$(TEST.exe): $(TEST.c.o)
+ $(call TEST.GCC.EXE++,$@,$^ $(TEST.libs))
+
+$(TEST.c.o): $(LIBHB.a)
+$(TEST.c.o): | $(dir $(TEST.c.o))
+$(TEST.c.o): $(BUILD/)%.o: $(PROJECT/)%.c
+ $(call TEST.GCC.C_O,$@,$<)
+
+test.clean:
+ $(RM.exe) -f $(TEST.out)
+
+###############################################################################
+
+build: test.build
+clean: test.clean