brintos

brintos / llvm-project-archived public Read only

0
0
Text · 632 B · 8d44210 Raw
28 lines · plain
1CFLAGS+=-fPIC -I$(IMATH_DIR)2IMATH_DIR=../..3 4runtest: imath_test.so gmp_test.so wrappers.py random.tests5	./runtest $(TESTS)6 7gmp_test.c: gmp_custom_test.c genctest.py gmpapi.py8	./genctest.py gmp > $@9 10imath_test.c: imath_custom_test.c genctest.py gmpapi.py11	./genctest.py imath > $@12 13gmp_test.so: gmp_test.o14	$(CC) $(CFLAGS) -shared -o $@ $^ -lgmp15 16imath_test.so: imath_test.o17	$(CC) $(CFLAGS) -shared -L$(IMATH_DIR) -o $@ $^ -limath18 19wrappers.py: genpytest.py gmpapi.py20	./genpytest.py > $@21 22random.tests: gendata.py23	./gendata.py > $@24 25clean:26	rm -f a.out *.so *.o gmp_test.c imath_test.c wrappers.py *.pyc27	rm -rf __pycache__28