-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
40 lines (31 loc) · 1.21 KB
/
Makefile
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
CC=gcc
CFLAGS=-g -Wall -O2 -pthread -march=native
HTSDIR=htslib
INCLUDES=-I$(HTSDIR)
LFLAGS=-L$(HTSDIR)
LIBS=$(HTSDIR)/libhts.a
#LDLIBS=-lm -lz -lpthread # older version of htslib, 1.3
#LDLIBS=-lm -lz -llzma -lbz2 -lpthread # older version of htslib, 1.6
LDLIBS=-lm -lz -llzma -lbz2 -lpthread -lcurl
PREFIX = /usr/local
MAIN = eagle
AUX = vector.o util.o calc.o heap.o
all: UTIL HTSLIB
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) $(MAIN).c -o $(MAIN) $(AUX) $(LIBS) $(LDLIBS)
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) eagle-rc.c -o eagle-rc $(AUX) $(LIBS) $(LDLIBS)
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) eagle-nm.c -o eagle-nm $(AUX) $(LIBS) $(LDLIBS)
eagle: UTIL HTSLIB
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) $(MAIN).c -o $(MAIN) $(AUX) $(LIBS) $(LDLIBS)
eagle-rc: UTIL HTSLIB
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) eagle-rc.c -o eagle-rc $(AUX) $(LIBS) $(LDLIBS)
eagle-nm: UTIL HTSLIB
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) eagle-nm.c -o eagle-nm $(AUX) $(LIBS) $(LDLIBS)
HTSLIB:
$(MAKE) -C $(HTSDIR)/
UTIL:
$(CC) $(CFLAGS) $(LFLAGS) $(INCLUDES) -c vector.c util.c calc.c heap.c $(LDLIBS)
install: eagle eagle-rc
install -p $^ $(PREFIX)/bin
clean:
rm -f eagle eagle-rc eagle-nm *.o
# DO NOT DELETE THIS LINE -- make depend needs it