Skip to content

Commit b90527f

Browse files
authored
Merge pull request #29 from mr-c/patch-1
Make build system more flexible
2 parents e8082c7 + 881a3f0 commit b90527f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# FreeBSD ports, MacPorts, pkgsrc, etc.)
99

1010
CXX ?= c++
11-
CXXFLAGS ?= -Wall
11+
CXXFLAGS += -Wall
1212
DESTDIR ?= stage
1313
PREFIX ?= /usr/local
1414
MKDIR ?= mkdir
@@ -20,7 +20,7 @@ BIN = interval_tree_test
2020
all: ${BIN}
2121

2222
${BIN}: interval_tree_test.cpp IntervalTree.h
23-
${CXX} ${CXXFLAGS} interval_tree_test.cpp -std=c++0x -o ${BIN}
23+
${CXX} $(CPPFLAGS) ${CXXFLAGS} $(LDFLAGS) interval_tree_test.cpp -std=c++0x -o ${BIN}
2424

2525
install: all
2626
${MKDIR} -p ${DESTDIR}${PREFIX}/bin

0 commit comments

Comments
 (0)