blob: e0d27599fd71ec5c426f1915a1ea03a105c368f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- Makefile.orig 2017-02-11 22:31:35 UTC
+++ Makefile
@@ -1,10 +1,12 @@
-CC=gcc
-CFLAGS=-g -Wall -O2 -Wno-unused-function
+CC ?= gcc
+CFLAGS ?= -g -Wall -O2 -Wno-unused-function
+LDFLAGS += -lz -lm
-all:trimadap-mt
+all: trimadap-mt
trimadap-mt:trimadap-mt.c ksw.c kthread.c kseq.h ksw.h
- $(CC) $(CFLAGS) -pthread ksw.c kthread.c trimadap-mt.c -o $@ -lz -lm
+ $(CC) $(CFLAGS) -pthread ksw.c kthread.c trimadap-mt.c -o $@ $(LDFLAGS)
clean:
- rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session* trimadap-mt
+ rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a \
+ *.dSYM session* trimadap-mt
|