summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-01-30 15:43:29 +0000
committerMike Buland <eichlan@xagasoft.com>2014-01-30 15:43:29 +0000
commit29153409ed1ca86261f5d1084a0503e3291f3628 (patch)
treeb821d55a8dc89eb0099cf891de23c79e7e68421e
parent9072b0c98ba4f9412885a1a32002ee7214fd3dc0 (diff)
downloadlibbu++-29153409ed1ca86261f5d1084a0503e3291f3628.tar.gz
libbu++-29153409ed1ca86261f5d1084a0503e3291f3628.tar.bz2
libbu++-29153409ed1ca86261f5d1084a0503e3291f3628.tar.xz
libbu++-29153409ed1ca86261f5d1084a0503e3291f3628.zip
Updated Makefile, I used g++ instead of ${CXX} in several places.
-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}