]> www.ginac.de Git - ginac.git/blob - check/Makefile.in
6572b14bb15ea8eeb0268b4cb80d351c8a3e21b0
[ginac.git] / check / Makefile.in
1 # This is the Makefile for GiNaC's consistency checks.
2
3 # Not every make knows what CXX is, so we inherit it together with some other
4 # values from configure which checks it anyways:
5 CXX = @CXX@
6 CXXFLAGS = @CXXFLAGS@
7 CPPFLAGS = @CPPFLAGS@ -I../include
8 DEFS = @DEFS@
9 LIBS = @LIBS@
10 LDFLAGS = @LDFLAGS@
11
12 # Here come the usual install directories in GNU-configure fashion:
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15 libdir = @libdir@
16 includedir = @includedir@
17
18 # This must be empty unless the user has called configure with --enable-shared:
19 shared = @shared@
20
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 \
24           fcntimer.o main.o
25
26 all: 
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."
30
31 sharedcheck: ${OBJECTS} ../src/.libs/libginac.so
32         ${CXX} ${LDFLAGS} ${OBJECTS} -Wl,--rpath -Wl,../src/.libs -L../src/.libs -lginac ${LIBS} -o main
33         @echo -n "Running "
34         ./main 2> result.out
35         @echo -n "comparing output: "
36         cmp result.ref result.out
37
38 staticcheck: ${OBJECTS} ../src/.libs/libginac.a
39         ${CXX} ${LDFLAGS} ${OBJECTS} ../src/.libs/libginac.a ${LIBS} -o main
40         @echo -n "Running "
41         ./main 2> result.out
42         @echo -n "comparing output: "
43         cmp result.ref result.out
44
45 # Special dummy targets:
46 .PHONY: clean distclean all sharedcheck staticcheck
47 .SUFFIXES: .o .cpp
48 .SILENT: all
49
50 clean:
51         rm -f *.o main core result.out
52
53 distclean: clean
54         rm -f Makefile
55
56 # Suffix rules:
57 .cpp.o :
58         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${DEFS} -c $<