-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
executable file
·39 lines (25 loc) · 973 Bytes
/
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
.PHONY: all wild-pbwt gen err clean depend
all: wild-pbwt gen err
wild-pbwt: bin/wild-pbwt
gen: bin/gen
err: bin/err
CXXFLAGS ?= -O2 -march=native
#uncomment next line if SDSL is intalled under user's home directory
#CXXFLAGS ?= -O2 -march=native -I ~/include -L ~/lib
LDLIBS += -lsdsl
SRCS=src/hap_gen.cpp src/hap_wild.cpp src/pbwt.cpp
bin/gen: src/hap_gen.o
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
bin/err: src/hap_wild.o
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
bin/wild-pbwt: src/pbwt.o
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
bin/debug-wild-pbwt: src/pbwt.cpp
$(CXX) $(DEBUG_CXXFLAGS) $(DEBUG_CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
clean:
$(RM) src/*.o bin/* .depend
depend: .depend
.depend: $(SRCS)
$(RM) ./.depend
$(CXX) $(CPPFLAGS) -MM $^ >>./.depend;
include .depend