source: branches/properties/SOURCE_TOOLS/Makefile

Last change on this file was 19446, checked in by westram, 16 months ago
  • introduce onlyC_flags
    • flags used for C compilation only.
    • similar to cxxflags (references added).
    • pass down onlyC_flags into AxML, CLUSTAL, CLUSTALW, FASTDNAML, FASTTREE, GL, MrBAYES, PHYLIP, PHYML*, RAxML, SINA(unused), SOURCE_TOOLS, SUPPORT, TOOLS, TREEGEN + TREEPUZZLE.
    • set flags to -Werror-implicit-function-declaration
      • error is only effective in a small part of these modules.
      • TODO need to activate warnings → will activate the error as well.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1.SUFFIXES: .o .c .cxx
2
3SED:=$(ARBHOME)/SH/arb_sed
4
5all:
6                @echo "use make clean"
7
8# --------------------------------------------------------------------------------
9
10OBJECTS=arb_main_cpp.o arb_main_c.o
11
12ARB_MAIN_DEPENDS=Makefile arb_main.h
13
14arb_main_cpp.o: arb_main.cxx $(ARB_MAIN_DEPENDS)
15        $(A_CXX) $(cflags) $(cxxflags) -c $< -o $@ $(CXX_INCLUDES) $(POST_COMPILE) $<
16
17arb_main_c.o: arb_main.c $(ARB_MAIN_DEPENDS) arb_main.cxx
18        $(A_CC) $(cflags) $(onlyC_flags) -c $< -o $@ $(CC_INCLUDES) $(POST_COMPILE) $<
19
20mainwrapper: $(OBJECTS)
21
22# --------------------------------------------------------------------------------
23# tmp.generator
24
25% : %.tmp
26        ./mv_if_diff $< $@
27
28# --------------------------------------------------------------------------------
29
30clean:
31        rm -f stamp.* valgrind2grep.lst postcompile.sav $(OBJECTS)
32
33valgrind_update:
34        ./arb_valgrind update
35
36# for details about vectorization see ./vectorize.README
37vectorize_checks: vectorized.source
38
39vectorized.source.tmp:
40        ( echo "# [generated] list of source-files for which loop vectorization shall be checked"; \
41          echo "# for details see ./vectorize.README"; \
42          ( cd $(ARBHOME); \
43            grep --recursive --files-with-matches "--include=*.c" "--include=*.cxx" LOOP_VECTORIZED . \
44            | $(SED) -e 's/^\.\///' \
45            | sort --ignore-case \
46          ) \
47        ) > $@
48
49
50# --------------------------------------------------------------------------------
51
52# library dependencies generated here always use dynamic libnames,
53# even if LINK_STATIC=1 defined in ../Makefile@LINK_STATIC
54#
55# The files generated here are not used yet (so the above does not matter)
56# They are intended to be used to link all ARB binaries
57# (instead of using explicit link commands in ../Makefile)
58
59CORE_LIB=lib/libCORE.so
60
61TMP=dep.alltargets.tmp.tmp
62
63dep.alltargets.tmp: Makefile needed_libs.pl
64        LINK_STATIC=0;./needed_libs.pl -U -I -F $(CORE_LIB) > $(TMP)
65        $(SED) -e 's/ /\n/g' < $(TMP) > $@
66        rm $(TMP)
67        echo $(CORE_LIB) >>$@
68
69dep.libtargets: dep.alltargets
70        grep -E '\.(a|o|so)' $< > $@ || true
71
72dep.4dummy.tmp: dep.libtargets
73        ./gen_dep.pl dummy < $< > $@ || (rm $@ && false)
74
75libdepends: dep.4dummy
76
77
Note: See TracBrowser for help on using the repository browser.