forked from edawson/gfakluge
-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile.detuned
42 lines (29 loc) · 1.11 KB
/
makefile.detuned
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
41
42
CXX?=g++
CXXFLAGS:=-O0 -pipe -std=c++11 -pg -ggdb
BIN_DIR:=bin
BUILD_DIR:=build
LD_LIB_FLAGS=-L./src/ -L./
LD_INC_FLAGS=-I./src/ -I./ -I./src/tinyFA -I./$(BUILD_DIR)
gfak: $(BUILD_DIR)/main.o libgfakluge.a src/tinyFA/pliib.hpp src/tinyFA/tinyfa.hpp src/gfa_builder.hpp | $(BUILD_DIR) $(BIN_DIR)
+$(CXX) $(CXXFLAGS) -o $@ $< $(LD_LIB_FLAGS) $(LD_INC_FLAGS) -lgfakluge
$(BUILD_DIR)/main.o: src/main.cpp src/gfakluge.hpp src/tinyFA/pliib.hpp src/tinyFA/tinyfa.hpp src/gfa_builder.hpp | $(BUILD_DIR) $(BIN_DIR)
+$(CXX) $(CXXFLAGS) -c -o $@ $< $(LD_LIB_FLAGS) $(LD_INC_FLAGS) -lgfakluge
libgfakluge.a: $(BUILD_DIR)/gfakluge.o src/tinyFA/pliib.hpp src/tinyFA/tinyfa.hpp | $(BUILD_DIR) $(BIN_DIR)
ar -rs $@ $<
$(BUILD_DIR)/gfakluge.o: src/gfakluge.cpp src/gfakluge.hpp src/tinyFA/pliib.hpp src/tinyFA/tinyfa.hpp | $(BUILD_DIR)
$(CXX) $(CXXFLAGS) -c -o $@ $< $(LD_LIB_FLAGS) $(LD_INC_FLAGS)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
$(BIN_DIR):
mkdir -p $(BIN_DIR)
.PHONY: clean all
clean:
$(RM) gfak
$(RM) src/*.o
$(RM) *.a
$(RM) x.sort
$(RM) y.sort
rm -rf $(BIN_DIR)
rm -rf $(BUILD_DIR)
$(RM) test_test.gfa
$(RM) q_test.gfa