1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | |
---|
3 | .SUFFIXES: .o .cxx .depend |
---|
4 | |
---|
5 | CPP_OBJECTS = $(subst .cxx,.o,$(wildcard *.cxx)) |
---|
6 | |
---|
7 | cma_cxxflags:=$(cxxflags) |
---|
8 | cma_cflags:= $(cflags) |
---|
9 | |
---|
10 | SUPPRESS_WARNINGS=1# set to 0 to show warnings |
---|
11 | |
---|
12 | ifeq ($(SUPPRESS_WARNINGS),1) |
---|
13 | cma_cxxflags:= $(subst -Weffc++,,$(cma_cxxflags)) |
---|
14 | cma_cxxflags:= $(subst -Wctor-dtor-privacy,,$(cma_cxxflags)) |
---|
15 | cma_cxxflags:= $(subst -Wlogical-op,,$(cma_cxxflags)) |
---|
16 | cma_cxxflags:= $(subst -Wunused-local-typedefs,,$(cma_cxxflags)) |
---|
17 | cma_cxxflags:= $(cma_cxxflags) -Wno-deprecated-declarations -Wno-ignored-attributes |
---|
18 | cma_cflags:= $(subst -Wshadow,,$(cma_cflags)) |
---|
19 | cma_cflags+= -Wno-unused-local-typedefs# this is included in -Wall |
---|
20 | endif |
---|
21 | |
---|
22 | cma_cflags+= -I../HEADERLIBS |
---|
23 | |
---|
24 | $(MAIN): $(CPP_OBJECTS) warn |
---|
25 | @$(ARBHOME)/SOURCE_TOOLS/binuptodate.pl $(MAIN) $(CPP_OBJECTS) || ( \ |
---|
26 | echo "$(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS)"; \ |
---|
27 | $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) ; \ |
---|
28 | ) |
---|
29 | |
---|
30 | warn: |
---|
31 | ifeq ($(SUPPRESS_WARNINGS),1) |
---|
32 | @echo "------------------------------------------------------------------------------------------" |
---|
33 | @echo "Please note: Several compiler warnings have been disabled in RNACMA" |
---|
34 | @echo "(namely -Weffc++, -Wctor-dtor-privacy, -Wlogical-op, -Wshadow, -Wunused-local-typedefs," |
---|
35 | @echo " -Wdeprecated-declarations -Wignored-attributes) to avoid Eigen spams here" |
---|
36 | @echo "------------------------------------------------------------------------------------------" |
---|
37 | endif |
---|
38 | |
---|
39 | .cxx.o: warn |
---|
40 | $(A_CXX) $(cma_cflags) $(cma_cxxflags) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
41 | |
---|
42 | |
---|
43 | $(CPP_OBJECTS) : Makefile |
---|
44 | |
---|
45 | clean: |
---|
46 | rm -f $(CPP_OBJECTS) *.a |
---|
47 | |
---|
48 | DEPENDS = $(CPP_OBJECTS:.o=.depend) |
---|
49 | depends: $(DEPENDS) |
---|
50 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
51 | @rm $(DEPENDS) |
---|
52 | $(DEPENDS): depend.init |
---|
53 | depend.init: |
---|
54 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
55 | .c.depend: |
---|
56 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
57 | .cxx.depend: |
---|
58 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
59 | |
---|
60 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|
61 | |
---|
62 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
63 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
64 | |
---|
65 | AlignedSequenceLoader.o: AlignedSequenceLoader.h |
---|
66 | AlignedSequenceLoader.o: Cma.h |
---|
67 | AlignedSequenceLoader.o: dbconn.h |
---|
68 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
69 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_t_prot.h |
---|
70 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
71 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
72 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
73 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
74 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
75 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
76 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
77 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
78 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdbt.h |
---|
79 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
80 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
81 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
82 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/downcast.h |
---|
83 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
84 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
85 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
86 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
87 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
88 | |
---|
89 | Analyser.o: AlignedSequenceLoader.h |
---|
90 | Analyser.o: Analyser.h |
---|
91 | Analyser.o: Cma.h |
---|
92 | Analyser.o: dbconn.h |
---|
93 | Analyser.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
94 | Analyser.o: $(ARBHOME)/INCLUDE/ad_t_prot.h |
---|
95 | Analyser.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
96 | Analyser.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
97 | Analyser.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
98 | Analyser.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
99 | Analyser.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
100 | Analyser.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
101 | Analyser.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
102 | Analyser.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
103 | Analyser.o: $(ARBHOME)/INCLUDE/arbdbt.h |
---|
104 | Analyser.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
105 | Analyser.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
106 | Analyser.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
107 | Analyser.o: $(ARBHOME)/INCLUDE/downcast.h |
---|
108 | Analyser.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
109 | Analyser.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
110 | Analyser.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
111 | Analyser.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
112 | Analyser.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
113 | |
---|
114 | Cma.o: Cma.h |
---|
115 | Cma.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
116 | Cma.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
117 | |
---|
118 | dbconn.o: dbconn.h |
---|
119 | dbconn.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
120 | dbconn.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
121 | dbconn.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
122 | dbconn.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
123 | dbconn.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
124 | dbconn.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
125 | dbconn.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
126 | dbconn.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
127 | dbconn.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
128 | dbconn.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
129 | dbconn.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
130 | dbconn.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
131 | dbconn.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
132 | dbconn.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
133 | dbconn.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
134 | dbconn.o: $(ARBHOME)/INCLUDE/test_global.h |
---|