aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_mem/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_mem/source.mk')
-rw-r--r--tests/simple_mem/source.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/simple_mem/source.mk b/tests/simple_mem/source.mk
new file mode 100644
index 0000000..1c19967
--- /dev/null
+++ b/tests/simple_mem/source.mk
@@ -0,0 +1,17 @@
+TEST_OBJS != ./scripts/gen-deps --sources "tests/simple_mem/traffic_gen.c"
+NO_BUS_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_mem/no_bus.c"
+BUS_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_mem/bus.c"
+MANY_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_mem/many.c"
+
+TEST_PROGS += build/tests/simple_mem/no_bus \
+ build/tests/simple_mem/bus \
+ build/tests/simple_mem/many
+
+build/tests/simple_mem/no_bus: $(NO_BUS_TEST_OBJ) $(TEST_OBJS) $(OBJS)
+ $(COMPILE) $(NO_BUS_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+
+build/tests/simple_mem/bus: $(BUS_TEST_OBJ) $(TEST_OBJS) $(OBJS)
+ $(COMPILE) $(BUS_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+
+build/tests/simple_mem/many: $(MANY_TEST_OBJ) $(TEST_OBJS) $(OBJS)
+ $(COMPILE) $(MANY_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@