Lines 1-4
Link Here
|
1 |
--- Makefile.orig 2015-11-14 00:48:48 UTC |
1 |
--- Makefile.orig 2017-12-14 17:15:02 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -4,7 +4,7 @@ |
3 |
@@ -4,7 +4,7 @@ |
4 |
# (c) 2009 Aaron Quinlan |
4 |
# (c) 2009 Aaron Quinlan |
Lines 14-51
Link Here
|
14 |
export SRC_DIR = src |
14 |
export SRC_DIR = src |
15 |
export UTIL_DIR = src/utils |
15 |
export UTIL_DIR = src/utils |
16 |
-export CXX = g++ |
16 |
-export CXX = g++ |
17 |
+export CXX = c++ |
17 |
+export CXX ?= g++ |
18 |
#ifeq ($(DEBUG),1) |
18 |
ifeq ($(DEBUG),1) |
19 |
#export CXXFLAGS = -Wall -O0 -g -fno-inline -fkeep-inline-functions -D_FILE_OFFSET_BITS=64 -fPIC -DDEBUG -D_DEBUG |
19 |
-export CXXFLAGS = -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
20 |
#else |
20 |
+export CXXFLAGS += -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
|
|
21 |
else |
21 |
-export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
22 |
-export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
22 |
+export CXXFLAGS += -Wall -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
23 |
+export CXXFLAGS += -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES) |
23 |
#endif |
24 |
endif |
24 |
export LIBS = -lz |
|
|
25 |
export BT_ROOT = src/utils/BamTools/ |
26 |
@@ -129,20 +129,17 @@ INCLUDES = -I$(SRC_DIR)/utils/bedFile \ |
27 |
-I$(SRC_DIR)/utils/GenomeFile \ |
28 |
-I$(SRC_DIR)/utils/RecordOutputMgr \ |
29 |
-I$(SRC_DIR)/utils/ToolBase \ |
30 |
- -I$(SRC_DIR)/utils/driver \ |
31 |
- |
32 |
+ -I$(SRC_DIR)/utils/driver |
33 |
|
34 |
all: print_banner $(OBJ_DIR) $(BIN_DIR) autoversion $(UTIL_SUBDIRS) $(SUBDIRS) |
35 |
@echo "- Building main bedtools binary." |
36 |
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c src/bedtools.cpp -o obj/bedtools.o $(INCLUDES) |
37 |
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $(BIN_DIR)/bedtools $(BUILT_OBJECTS) -L$(UTIL_DIR)/BamTools/lib/ -lbamtools $(LIBS) $(LDFLAGS) $(INCLUDES) |
38 |
@echo "done." |
39 |
- |
40 |
@echo "- Creating executables for old CLI." |
41 |
@python scripts/makeBashScripts.py |
42 |
@chmod +x bin/* |
43 |
@echo "done." |
44 |
- |
45 |
|
25 |
|
46 |
.PHONY: all |
26 |
# If the user has specified to do so, tell the compile to use rand() (instead of mt19937). |
47 |
|
27 |
@@ -193,7 +193,7 @@ clean: |
48 |
@@ -183,7 +180,7 @@ clean: |
|
|
49 |
.PHONY: clean |
28 |
.PHONY: clean |
50 |
|
29 |
|
51 |
test: all |
30 |
test: all |