1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
SHELL ?= /bin/sh
PROG ?= soap
DEBUG ?= NO
STATIC ?= NO
PROFILE ?= NO
PTHREADS ?= YES
CC ?= gcc
DEBUG_FLAGS ?= -g3 -Wall -O2
PROFILE_FLAGS ?= -fprofile-arcs -ftest-coverage -pg
RELEASE_FLAGS ?= -O3 -funroll-loops -maccumulate-outgoing-args -fomit-frame-pointer
STATIC_FLAGS ?= -static
DFLAGS ?= -DMAKE_TIME=\""`date`"\"
LDFLAGS ?=
CPPFLAGS ?=
LIBS ?= -lm
#TARBALL_EXCLUDE = "*.(o,gz,zip)"
#ZIP_EXCLUDE = *.o *.gz *.zip
ifeq (YES, $(STATIC))
CFLAGS += $(STATIC_FLAGS)
endif
ifeq (YES, $(DEBUG))
CFLAGS += $(DEBUG_FLAGS) $(STATIC_FLAGS)
CFLAGS += -DDEBUG
# PTHREADS = NO
else
CFLAGS += $(RELEASE_FLAGS)
endif
ifeq (YES, $(PTHREADS))
LIBS += -lpthread
CFLAGS += -DPTHREADS
endif
CFLAGS += $(DFLAGS)
ifeq (YES, $(PROFILE))
CFLAGS += $(PROFILE_FLAGS)
endif
OBJ = SeqIO.o MiscUtilities.o MemManager.o TextConverter.o r250.o DNACount.o HSP.o Timing.o BWT.o extratools.o soapio.o BWTAln.o Match.o PairMatch.o stdaln.o kstring.o soap.o
.SUFFIX: .c .o
.c.o:
$(CC) $(CPPFLAGS) -c $(CFLAGS) $< -o $@
all: $(PROG)
$(PROG): $(OBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) $(LIBS)
SeqIO.o:SeqIO.h
r250.o: r250.h
DNACount.o:DNACount.h
HSP.o:HSP.h
MiscUtilities.o:MiscUtilities.h
MemManager.o:MemManager.h
TextConverter.o:TextConverter.h
extratools.o:extratools.h BWT.h MiscUtilities.h MemManager.h TextConverter.h Timing.h HSP.h kstring.h
soapio.o:soapio.h SeqIO.h
BWT.o:BWT.h
BWTAln.o:BWTAln.h BWT.h
Match.o:Match.h BWTAln.h soapio.h
PairMatch.o:Match.h BWTAln.h stdaln.h
MiscUtilities.o:MiscUtilities.h
MemManager.o:MemManager.h
TextConverter.o:TextConverter.h
stdaln.o:stdaln.h
kstring.o:kstring.h
clean:
rm -f *.o $(PROG)
.PHONY: clean
|