source: trunk/GDE/SUPPORT/Makefile

Last change on this file was 19446, checked in by westram, 17 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: 921 bytes
Line 
1.SUFFIXES: .o .c .depend
2
3OBJECT =  Restriction.o Zuk_to_gen.o count.o findall.o lsadt.o \
4        sho_helix.o varpos.o
5
6BINARIES=$(OBJECT:%.o=$(ARBHOME)/bin/%)
7
8all: $(BINARIES)
9
10$(ARBHOME)/bin/%: %.c
11        $(A_CC) $(cflags) $(onlyC_flags) -o $@ $< $(CC_INCLUDES) -lm
12
13clean:
14        rm -f $(BINARIES)
15
16DEPENDS = $(OBJECT:.o=.depend)
17depends: $(DEPENDS)
18        @cat $(DEPENDS) | grep -v '^#' >>Makefile
19        @rm $(DEPENDS)
20$(DEPENDS): depend.init
21depend.init:
22        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
23.c.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25
26
27# DO NOT DELETE THIS LINE -- make depend depends on it.
28
29# Do not add dependencies manually - use 'make depend' in $ARBHOME
30# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE)
31
32count.o: Flatio.c
33
34findall.o: Flatio.c
35
36Restriction.o: Flatio.c
37
38sho_helix.o: Flatio.c
39
40varpos.o: Flatio.c
41
42Zuk_to_gen.o: $(ARBHOME)/INCLUDE/gets_noOverflow.h
Note: See TracBrowser for help on using the repository browser.