source: trunk/READSEQ/Makefile

Last change on this file was 19450, checked in by westram, 2 years 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
RevLine 
[18723]1.SUFFIXES: .o .c .depend
[4635]2
[2]3OBJECT = readseq.o ureadseq.o
4
[4635]5BINARY=$(ARBHOME)/bin/arb_readseq
[2]6
[11805]7ifeq ($(DEBIAN),1)
[344]8all:
9        @echo Do not compile readseq.  Instead use the Debian package.
[1450]10else
[4635]11all: $(BINARY)
[344]12endif
[2]13
[1450]14# --------------------------------------------------------------------------------
15
16# no warnings in this directory
[19450]17subcflags:=$(cflags) $(onlyC_flags)
[1450]18
19
[4635]20$(BINARY):  $(OBJECT)
[10955]21        $(A_CC) $(subcflags) -o $@ $(OBJECT)
[2]22
23.c.o:
[13443]24        $(A_CC) $(subcflags) -c $< $(CC_INCLUDES) $(POST_COMPILE) $<
[2]25
[4635]26clean:
[18729]27        rm -f $(OBJECT) $(BINARY)
[4635]28
[1617]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 >$@
[2]40
41# DO NOT DELETE THIS LINE -- make depend depends on it.
42
[2338]43# Do not add dependencies manually - use 'make depend' in $ARBHOME
[9575]44# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
[2338]45
[1617]46readseq.o: ureadseq.h
[19443]47readseq.o: $(ARBHOME)/INCLUDE/gets_noOverflow.h
[1617]48
49ureadseq.o: ureadseq.h
Note: See TracBrowser for help on using the repository browser.