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 -Wno-deprecated-copy |
---|
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 -Wdeprecated-copy)" |
---|
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: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
76 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/ad_t_prot.h |
---|
77 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
78 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
79 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
80 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
81 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
82 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
83 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
84 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
85 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbdbt.h |
---|
86 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
87 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
88 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
89 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/downcast.h |
---|
90 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
91 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
92 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
93 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
94 | AlignedSequenceLoader.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
95 | |
---|
96 | Analyser.o: AlignedSequenceLoader.h |
---|
97 | Analyser.o: Analyser.h |
---|
98 | Analyser.o: Cma.h |
---|
99 | Analyser.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
100 | Analyser.o: $(ARBHOME)/INCLUDE/ad_t_prot.h |
---|
101 | Analyser.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
102 | Analyser.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
103 | Analyser.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
104 | Analyser.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
105 | Analyser.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
106 | Analyser.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
107 | Analyser.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
108 | Analyser.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
109 | Analyser.o: $(ARBHOME)/INCLUDE/arbdbt.h |
---|
110 | Analyser.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
111 | Analyser.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
112 | Analyser.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
113 | Analyser.o: $(ARBHOME)/INCLUDE/downcast.h |
---|
114 | Analyser.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
115 | Analyser.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
116 | Analyser.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
117 | Analyser.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
118 | Analyser.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
119 | Analyser.o: $(ARBHOME)/INCLUDE/test_unit.h |
---|
120 | |
---|
121 | Cma.o: Cma.h |
---|
122 | Cma.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
123 | Cma.o: $(ARBHOME)/INCLUDE/gccver.h |
---|