]> www.ginac.de Git - ginac.git/blob - cint/Makefile.am
- New file exam_inifcns.cpp holds some functions that really do not belong
[ginac.git] / cint / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 bin_PROGRAMS = ginaccint.bin
4 bin_SCRIPTS = ginaccint
5 noinst_LTLIBRARIES = libginac.la
6 ginaccint_bin_SOURCES = ginaccint.bin.cpp dummies.cpp dummies.h
7 libginac_la_SOURCES =
8 man_MANS = ginaccint.1
9
10 # Build a modified library in the ginac-subdir and put it into the cint-subdir:
11 libginac.la:
12         (cd ../ginac && \
13           $(MAKE) clean; \
14           $(MAKE) CXXFLAGS="$$CXXFLAGS -DNO_NAMESPACE_GINAC" && \
15           $(MAKE) install-libLTLIBRARIES prefix=`pwd`/../cint libdir=`pwd`/../cint && \
16           $(MAKE) clean)
17
18 ginaccint.bin: libginac.la ginaccint.bin.cpp
19         (export CINTSYSDIR=$(CINTSYSDIR); $(MAKE) -f Makefile.makecint PATH=$(PATH):$(CINTSYSDIR))
20
21 EXTRA_DIST = $(man_MANS) dummies.pl
22
23 # Files which are generated by perl scripts
24 $(srcdir)/dummies.h $(srcdir)/dummies.cpp: $(srcdir)/dummies.pl
25         cd $(srcdir) && perl -w dummies.pl
26
27 # Force build of headers before compilation
28 $(srcdir)/ginaccint.bin.cpp: $(srcdir)/dummies.h
29
30 # Force targets clean and distclean to call Makecint's own Makefile
31 makecint_clean:
32         (if [ -f Makefile.makecint ]; then $(MAKE) -f Makefile.makecint clean; fi)
33
34 clean: makecint_clean
35         -rm -f libginac*
36
37 distclean: makecint_clean