Commit 6c096cfc authored by Daniel Tuulik's avatar Daniel Tuulik Committed by Daniel Tuulik

Clean up makefiles

Building and executing the test is now done in Python
parent e56b9db6
......@@ -17,35 +17,15 @@ test-qgen-parse:
test-qgen-ada:
$(TESTQGEN_ADA) $(ROOT_MODEL)
cd generated_ada && cp ../test_qgen_ada.c test_qgen_ada.c; \
mono $(ASN1SCC) -c -typePrefix asn1Scc -equal ../dataview-uniq.asn; \
$(GNATBIND) -n obj_ada/challenge.ali; \
$(CC) -O$(O) -c -g test_qgen_ada.c ; \
$(GNATLINK) -o test_qgen_ada test_qgen_ada.o obj_ada/challenge.ali -lm; \
./test_qgen_ada
test-qgen-c:
$(TESTQGEN_C) $(ROOT_MODEL)
cd generated_c && cp ../test_qgen_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-qgen-gt-ada:
$(TESTQGEN_GT_ADA) $(ROOT_MODEL)
test-qgen-gt-c:
$(TESTQGEN_GT_C) $(ROOT_MODEL)
cd generated_gt_c && cp ../test_qgen_gt_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-qgen-ada-asn:
$(TESTQGEN_ADA_ASN) $(ROOT_MODEL)
test-qgen-c-asn:
$(TESTQGEN_C_ASN) $(ROOT_MODEL)
test-ada: challenge.ali dataview-uniq.o | test_ada.o
$(GNATBIND) -n challenge.ali
......
......@@ -15,28 +15,15 @@ test-qgen-parse:
test-qgen-ada:
$(TESTQGEN_ADA) $(ROOT_MODEL)
cd generated_ada && cp ../test_qgen_ada.c test_qgen_ada.c; \
$(GNATBIND) -n obj_ada/expressions.ali; \
$(CC) -O$(O) -c -g test_qgen_ada.c ; \
$(GNATLINK) -o test_qgen_ada test_qgen_ada.o obj_ada/expressions.ali -lm; \
./test_qgen_ada
test-qgen-c:
$(TESTQGEN_C) $(ROOT_MODEL)
cd generated_c && cp ../test_qgen_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-qgen-gt-ada:
$(TESTQGEN_GT_ADA) $(ROOT_MODEL)
test-qgen-gt-c:
$(TESTQGEN_GT_C) $(ROOT_MODEL)
cd generated_gt_c && cp ../test_qgen_gt_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-ada: expressions.ali dataview-uniq.o | test_ada.o
$(GNATBIND) -n expressions.ali
......
......@@ -15,29 +15,15 @@ test-qgen-parse:
test-qgen-ada:
$(TESTQGEN_ADA) $(ROOT_MODEL)
cd generated_ada && cp ../test_qgen_ada.c test_qgen_ada.c; \
mono $(ASN1SCC) -c -typePrefix asn1Scc -equal ../dataview-uniq.asn; \
$(GNATBIND) -n obj_ada/expressions.ali; \
$(CC) -O$(O) -c -g test_qgen_ada.c ; \
$(GNATLINK) -o test_qgen_ada test_qgen_ada.o obj_ada/expressions.ali -lm; \
./test_qgen_ada
test-qgen-c:
$(TESTQGEN_C) $(ROOT_MODEL)
cd generated_c && cp ../test_qgen_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-qgen-gt-ada:
$(TESTQGEN_GT_ADA) $(ROOT_MODEL)
test-qgen-gt-c:
$(TESTQGEN_GT_C) $(ROOT_MODEL)
cd generated_gt_c && cp ../test_qgen_gt_c.c test_qgen_c.c; \
$(CC) -O$(O) -c -g test_qgen_c.c; \
$(CC) test_qgen_c.o obj/*.o -lm -o test_qgen_c; \
./test_qgen_c
test-ada: expressions.ali dataview-uniq.o | test_ada.o
$(GNATBIND) -n expressions.ali
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment