File: Makefile.in

package info (click to toggle)
cadabra 1.46-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,212 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 328; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (56 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

.PHONY: all 

MACTEST= @MAC_OS_X@

all: xcadabra 

static: xcadabra_static

OBJS   = help.o widgets.o window.o main.o ../src/stopwatch.o
CFLAGS = -O2 -I. -I@top_srcdir@/include `pkg-config modglue --cflags` `pkg-config --cflags gtkmm-2.4` \
         `pkg-config --cflags pango` $(CPPFLAGS)
SRCS   = `find . -name "*.cc"`
TIMESTAMP = -D"RELEASE=\"${RELEASE}\"" -D"DATETIME=\"`date | sed -e 's/  / /'`\"" -DHOSTNAME=\"`hostname`\"

%.o: %.cc
	@CXX@ -Wall @CFLAGS@ -D"DESTDIR=\"@prefix@\"" ${TIMESTAMP} ${CFLAGS} $(CPPFLAGS) -c -o $@ $<

main.o: $(OBJS) Makefile

xcadabra: $(OBJS)
	@CXX@ -o xcadabra $+ `pkg-config modglue --libs` `pkg-config --libs gtkmm-2.4` -lpcrecpp $(LDFLAGS) $(CPPFLAGS)

xcadabra_static: $(OBJS)
	@CXX@ -o xcadabra -static $+  -L@prefix@/lib `pkg-config modglue --libs` \
                    `pkg-config --libs gtkmm-2.4` `pkg-config libxml++-2.6` \
                    -lpthread -lexpat $(LDFLAGS)

test_texit: texit.o test_texit.o
	@CXX@ -o test_texit `pkg-config modglue --libs` `pkg-config --libs gtkmm-2.4` $+ 

install:
ifeq ($(strip $(MACTEST)),)
	strip xcadabra
endif
	install -d ${DESTDIR}@prefix@/bin
	install -m 0755 xcadabra ${DESTDIR}@prefix@/bin
	install -d ${DESTDIR}@prefix@/share/texmf/tex/latex/cadabra
	install -m 644 tableaux.sty $(DESTDIR)@prefix@/share/texmf/tex/latex/cadabra/tableaux.sty

uninstall:
	rm -f ${DESTDIR}@prefix@/bin/xcadabra

clean:
	rm -f *~ *.o xcadabra spawner multi

distclean: clean
	rm -f Makefile .depend

.depend:
	rm -f .depend
	for i in ${SRCS}; \
		do    g++ -E -MM -MT `echo $$i | sed -e 's/\.\///' -e 's/\.cc/\.o/'` ${CFLAGS} $(CPPFLAGS) $$i >> .depend; \
		done

include .depend