aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_ideal_alloc/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_ideal_alloc/source.mk')
-rw-r--r--tests/simple_ideal_alloc/source.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/simple_ideal_alloc/source.mk b/tests/simple_ideal_alloc/source.mk
index f797cdd..450c866 100644
--- a/tests/simple_ideal_alloc/source.mk
+++ b/tests/simple_ideal_alloc/source.mk
@@ -1,7 +1,9 @@
-ALLOC_TB_OBJ != ./scripts/gen-deps --sources "tests/simple_ideal_alloc/testbench.c"
-IDEAL_ALLOC_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_ideal_alloc/sim.c"
+SIMPLE_IDEAL_ALLOC := tests/simple_ideal_alloc
+SIMPLE_IDEAL_ALLOC_SIM := $(SIMPLE_IDEAL_ALLOC)/testbench.c $(SIMPLE_IDEAL_ALLOC)/sim.c
-TEST_PROGS += build/tests/simple_ideal_alloc/sim
+TESTS += $(SIMPLE_IDEAL_ALLOC)/sim
-build/tests/simple_ideal_alloc/sim: $(ALLOC_TB_OBJ) $(IDEAL_ALLOC_TEST_OBJ) $(OBJS)
- $(COMPILE) $(ALLOC_TB_OBJ) $(IDEAL_ALLOC_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+$(SIMPLE_IDEAL_ALLOC)/sim: $(SIMPLE_IDEAL_ALLOC_SIM) libgran.a
+ mkdir -p build/$(SIMPLE_IDEAL_ALLOC)
+ $(COMPILE_TEST) $(SIMPLE_IDEAL_ALLOC_SIM) libgran.a -o build/$@
+ ./scripts/gen-report -d build $@