source: trunk/READSEQ/Makefile

Last change on this file was 19450, checked in by westram, 16 months ago
  • keep -W -Wall in READSEQ ⇒ build does fail due to implicit-function-declaration.
  • include stdlib.h for missing prototypes ⇒ fixes build error.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1.SUFFIXES: .o .c .depend
2
3OBJECT = readseq.o ureadseq.o
4
5BINARY=$(ARBHOME)/bin/arb_readseq
6
7ifeq ($(DEBIAN),1)
8all:
9        @echo Do not compile readseq.  Instead use the Debian package.
10else
11all: $(BINARY)
12endif
13
14# --------------------------------------------------------------------------------
15
16# no warnings in this directory
17subcflags:=$(cflags) $(onlyC_flags)
18
19
20$(BINARY):  $(OBJECT)
21        $(A_CC) $(subcflags) -o $@ $(OBJECT)
22
23.c.o:
24        $(A_CC) $(subcflags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $<
25
26clean:
27        rm -f $(OBJECT) $(BINARY)
28
29DEPENDS = $(OBJECT:.o=.depend)
30depends: $(DEPENDS)
31        @cat $(DEPENDS) | grep -v '^#' >>Makefile
32        @rm $(DEPENDS)
33$(DEPENDS): depend.init
34depend.init:
35        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
36.c.depend:
37        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
38.cxx.depend:
39        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
40
41# DO NOT DELETE THIS LINE -- make depend depends on it.
42
43# Do not add dependencies manually - use 'make depend' in $ARBHOME
44# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
45
46readseq.o: ureadseq.h
47readseq.o: $(ARBHOME)/INCLUDE/gets_noOverflow.h
48
49ureadseq.o: ureadseq.h
Note: See TracBrowser for help on using the repository browser.