1 # This is the Makefile for GiNaC's consistency checks.
3 # Not every make knows what CXX is, so we inherit it together with some other
4 # values from configure which checks it anyways:
7 CPPFLAGS = @CPPFLAGS@ -I../include
12 # Here come the usual install directories in GNU-configure fashion:
14 exec_prefix = @exec_prefix@
16 includedir = @includedir@
18 # This must be empty unless the user has called configure with --enable-shared:
21 OBJECTS = paranoia_check.o numeric_output.o numeric_consist.o powerlaws.o \
22 expand_subs.o inifcns_consist.o differentiation.o poly_gcd.o \
23 normalization.o lsolve_onedim.o matrix_checks.o series_expansion.o \
27 echo "Please call it with 'make check' from top-level Makefile."
28 echo "Alternatively, you can use this Makefile's targets {shared|static}check"
29 echo "depending on your personal preferences and which lib you built."
31 sharedcheck: ${OBJECTS} ../src/.libs/libginac.so
32 ${CXX} ${LDFLAGS} ${OBJECTS} -Wl,--rpath -Wl,../src/.libs -L../src/.libs -lginac ${LIBS} -o main
35 @echo -n "comparing output: "
36 cmp result.ref result.out
38 staticcheck: ${OBJECTS} ../src/.libs/libginac.a
39 ${CXX} ${LDFLAGS} ${OBJECTS} ../src/.libs/libginac.a ${LIBS} -o main
42 @echo -n "comparing output: "
43 cmp result.ref result.out
45 # Special dummy targets:
46 .PHONY: clean distclean all sharedcheck staticcheck
51 rm -f *.o main core result.out
58 ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${DEFS} -c $<