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