| •1 |
CC?= gcc |
| •2 |
CFLAGS+= -g -Wall -O2 -fPIC #-fno-inline-functions -fno-inline-functions-called-once |
| 3 |
|
| 4 |
INCLUDES= |
| 5 |
OBJS= kthread.o misc.o \ |
| 6 |
bseq.o htab.o bfc.o \ |
| 7 |
rle.o rope.o mrope.o rld0.o \ |
| 8 |
unitig.o mag.o bubble.o ksw.o |
| 9 |
PROG= fml-asm |
| •10 |
LDLIBS+= -lm -lz -lpthread |
| •11 |
SONUMBER=0 |
| 12 |
|
| 13 |
.SUFFIXES:.c .o |
| 14 |
|
| 15 |
all:$(PROG) libfml.so.$(SONUMBER) |
| 16 |
|
| 17 |
fml-asm:libfml.a example.o |
| •18 |
$(CC) $(LDFLAGS) $(CFLAGS) $^ -o $@ -L. -lfml $(LDLIBS) |
| 19 |
|
| 20 |
libfml.a:$(OBJS) |
| 21 |
$(AR) -csru $@ $(OBJS) |
| 22 |
|
| 23 |
libfml.so.$(SONUMBER): $(OBJS) |
| •24 |
$(CC) $(LDFLAGS) -shared -o $@ $(OBJS) -fPIC -Wl,-soname,libfml.so.$(SONUMBER) $(LDLIBS) |
| 25 |
|
| •26 |
|
| 27 |
clean: |
| 28 |
rm -fr gmon.out *.o ext/*.o a.out $(PROG) *~ *.a *.dSYM session* |
| 29 |
|
| 30 |
depend: |
| 31 |
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(DFLAGS) -- *.c) |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
bfc.o: htab.h kmer.h internal.h fml.h kvec.h ksort.h |
| 36 |
bseq.o: fml.h kseq.h |
| 37 |
bubble.o: mag.h kstring.h fml.h kvec.h ksw.h internal.h khash.h |
| 38 |
example.o: fml.h |
| 39 |
htab.o: htab.h kmer.h khash.h |
| 40 |
ksw.o: ksw.h |
| 41 |
mag.o: mag.h kstring.h fml.h kvec.h internal.h kseq.h khash.h ksort.h |
| 42 |
misc.o: internal.h fml.h kstring.h rle.h mrope.h rope.h rld0.h mag.h kvec.h |
| 43 |
misc.o: htab.h kmer.h khash.h |
| 44 |
mrope.o: mrope.h rope.h |
| 45 |
rld0.o: rld0.h |
| 46 |
rle.o: rle.h |
| 47 |
rope.o: rle.h rope.h |
| 48 |
unitig.o: kvec.h kstring.h rld0.h mag.h fml.h internal.h ksort.h |