aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 160e6c4..ff80fb2 100644
--- a/Makefile
+++ b/Makefile
@@ -64,42 +64,42 @@ tools: ${TOOLS}
64${TOOLS}: %: src/tools/%.cpp libbu++.a 64${TOOLS}: %: src/tools/%.cpp libbu++.a
65 65
66$(filter-out viewcsv bin2cpp,${TOOLS}): 66$(filter-out viewcsv bin2cpp,${TOOLS}):
67 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ 67 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++
68 68
69viewcsv: 69viewcsv:
70 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lncurses 70 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lncurses
71 71
72bin2cpp: 72bin2cpp:
73 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma 73 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma
74 74
75myriad: 75myriad:
76 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread 76 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread
77 77
78${OBJECTS}: %.o: %.cpp 78${OBJECTS}: %.o: %.cpp
79 g++ -ggdb -W -Wall -I. ${CXXFLAGS} $< -c -o $@ 79 ${CXX} -ggdb -W -Wall -I. ${CXXFLAGS} $< -c -o $@
80 80
81$(patsubst %,src/%.cpp,${UNITS}): %.cpp: %.unit mkunit 81$(patsubst %,src/%.cpp,${UNITS}): %.cpp: %.unit mkunit
82 ./mkunit $< $@ 82 ./mkunit $< $@
83 83
84${UNITS}: %: src/%.cpp 84${UNITS}: %: src/%.cpp
85 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ 85 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++
86 86
87${TESTS}: %: src/%.cpp 87${TESTS}: %: src/%.cpp
88 88
89$(filter-out tests/bzip2 tests/deflate tests/lzma,${TESTS}): 89$(filter-out tests/bzip2 tests/deflate tests/lzma,${TESTS}):
90 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ 90 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++
91 91
92tests/bzip2: 92tests/bzip2:
93 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 93 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2
94 94
95tests/deflate: 95tests/deflate:
96 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lz 96 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lz
97 97
98tests/lzma: 98tests/lzma:
99 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -llzma 99 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -llzma
100 100
101tests/threadid: 101tests/threadid:
102 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread 102 ${CXX} -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread
103 103
104libbu++.a: bu ${HEADERS} ${OBJECTS} 104libbu++.a: bu ${HEADERS} ${OBJECTS}
105 ar -r libbu++.a ${OBJECTS} 105 ar -r libbu++.a ${OBJECTS}