| 1 |
# this Makefile is not used by MACS3, but I kept here for debugging. |
| 2 |
|
| 3 |
CC= gcc |
| 4 |
CFLAGS= -g -Wall -O2 -Wno-unused-function -DNO_WARN_X86_INTRINSICS #-fno-inline-functions -fno-inline-functions-called-once |
| 5 |
CPPFLAGS= |
| 6 |
INCLUDES= |
| 7 |
OBJS= kthread.o misc.o \ |
| 8 |
bseq.o htab.o bfc.o \ |
| 9 |
rle.o rope.o mrope.o rld0.o \ |
| 10 |
unitig.o mag.o bubble.o ksw.o |
| 11 |
PROG= fml-asm |
| 12 |
LIBS= -lm -lz -lpthread |
| 13 |
|
| 14 |
# for simde: https://github.com/lh3/bwa/pull/283/ |
| 15 |
|
| 16 |
CFLAGS += -DUSE_SIMDE -DSIMDE_ENABLE_NATIVE_ALIASES -DSIMDE_ENABLE_OPENMP -fopenmp-simd |
| 17 |
INCLUDES += -I. |
| 18 |
|
| 19 |
.SUFFIXES:.c .o |
| 20 |
|
| 21 |
.c.o: |
| 22 |
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@ |
| 23 |
|
| 24 |
all:$(PROG) |
| 25 |
|
| 26 |
fml-asm:libfml.a example.o |
| 27 |
$(CC) $(CFLAGS) $^ -o $@ -L. -lfml $(LIBS) |
| 28 |
|
| 29 |
libfml.a:$(OBJS) |
| 30 |
$(AR) -csru $@ $(OBJS) |
| 31 |
|
| 32 |
clean: |
| 33 |
rm -fr gmon.out *.o ext/*.o a.out $(PROG) *~ *.a *.dSYM session* |
| 34 |
|
| 35 |
depend: |
| 36 |
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(DFLAGS) -- *.c) |
| 37 |
|
| 38 |
# DO NOT DELETE |
| 39 |
|
| 40 |
bfc.o: htab.h kmer.h internal.h fml.h kvec.h ksort.h |
| 41 |
bseq.o: fml.h kseq.h |
| 42 |
bubble.o: mag.h kstring.h fml.h kvec.h ksw.h internal.h khash.h |
| 43 |
example.o: fml.h |
| 44 |
htab.o: htab.h kmer.h khash.h |
| 45 |
ksw.o: ksw.h |
| 46 |
mag.o: mag.h kstring.h fml.h kvec.h internal.h kseq.h khash.h ksort.h |
| 47 |
misc.o: internal.h fml.h kstring.h rle.h mrope.h rope.h rld0.h mag.h kvec.h |
| 48 |
misc.o: htab.h kmer.h khash.h |
| 49 |
mrope.o: mrope.h rope.h |
| 50 |
rld0.o: rld0.h |
| 51 |
rle.o: rle.h |
| 52 |
rope.o: rle.h rope.h |
| 53 |
unitig.o: kvec.h kstring.h rld0.h mag.h fml.h internal.h ksort.h |