source: tags/arb-6.0/RNACMA/Makefile

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