Debian Codegraph @

cootaneer/Makefile-coot

raw
1 # clipper makefile
2
3 # set by configure
4 CLPR=/home/cowtan/clipper20
5 FFTW=/home/cowtan/clipper/ccp4-onlylibs-dev/
6 CXX=g++
7 LD=gcc
8 AR=ar cr
9 XCPPFLAGS=-O1 -fPIC -ftemplate-depth-30
10 MKLIBS=lib-core lib-contrib lib-phs lib-cif lib-mmdbold lib-mmdb lib-minimol lib-ccp4
11 LDLIBS=-lclipper-ccp4 -lccp4c -lclipper-minimol -lclipper-mmdb -lclipper-contrib -lclipper-core -lrfftw -lfftw -lmmdb -lstdc++ -lm
12
13
14 # these should be OK
15 IFFTW=${FFTW}/include
16 LFFTW=${FFTW}/lib
17
18 ICLPR=${CLPR}/include
19 LCLPR=${CLPR}/lib
20
21
22 CPPFLAGS=${XCPPFLAGS} -I${IFFTW} -I${ICLPR}
23 LDFLAGS=-L${LFFTW} -L${LCLPR}
24
25
26 # targets
27 TARGETS= cootaneer-demo
28
29
30 # make rules
31 all: ${TARGETS}
32
33 buccaneer-lib.o: buccaneer-lib.cpp buccaneer-lib.h $(LCLPR)/*.a
34 ${CXX} $(CFLAGS) $(CPPFLAGS) -c $<
35
36 buccaneer-prot.o: buccaneer-prot.cpp buccaneer-prot.h $(LCLPR)/*.a
37 ${CXX} $(CFLAGS) $(CPPFLAGS) -c $<
38
39 buccaneer-sequence.o: buccaneer-sequence.cpp buccaneer-sequence.h $(LCLPR)/*.a
40 ${CXX} $(CFLAGS) $(CPPFLAGS) -c $<
41
42 cootaneer-sequence.o: cootaneer-sequence.cpp cootaneer-sequence.h $(LCLPR)/*.a
43 ${CXX} $(CFLAGS) $(CPPFLAGS) -c $<
44
45 cootaneer-demo.o: cootaneer-demo.cpp $(LCLPR)/*.a
46 ${CXX} $(CFLAGS) $(CPPFLAGS) -c $<
47
48 cootaneer-demo: cootaneer-demo.o buccaneer-lib.o buccaneer-prot.o buccaneer-sequence.o cootaneer-sequence.o
49 ${LD} $(LDFLAGS) -o $@ $< buccaneer-lib.o buccaneer-prot.o buccaneer-sequence.o cootaneer-sequence.o ${LDLIBS}
50
51
52
53
54 clean:
55 rm *.o ${TARGETS}