Skip to content

Commit 56997fe

Browse files
fix up Makefile
1 parent 3a73178 commit 56997fe

File tree

3 files changed

+2257
-2253
lines changed

3 files changed

+2257
-2253
lines changed

Makefile

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,26 @@ ifeq (,$(findstring raspberrypi,$(shell uname -a)))
1010
VALGRINDOPTS += --show-leak-kinds=all
1111
endif
1212

13+
CXXFLAGS += --std=c++11 -g
14+
1315
buildtest64:
14-
g++ --std=c++11 pickle_test.cpp -g -o pickletest64
16+
$(CXX) $(CXXFLAGS) pickle_test.cpp -o pickletest64
1517

1618
valgrind64: buildtest64
1719
valgrind $(VALGRINDOPTS) ./pickletest64 > test/out64.txt 2> test/valgrind64.txt
1820

21+
22+
buildtest32: CXXFLAGS += -m32
1923
buildtest32:
20-
g++ --std=c++11 -m32 pickle_test.cpp -g -o pickletest32
24+
$(CXX) $(CXXFLAGS) pickle_test.cpp -o pickletest32
2125

2226
valgrind32: buildtest32
2327
valgrind $(VALGRINDOPTS) ./pickletest32 > test/out32.txt 2> test/valgrind32.txt
2428

2529
clean:
26-
rm -f pickletest64
27-
rm -f pickletest32
28-
rm -f vgcore.*
30+
$(RM) -f pickletest64
31+
$(RM) -f pickletest32
32+
$(RM) -f vgcore.*
2933

3034
deps:
3135
sudo dpkg --add-architecture i386

0 commit comments

Comments
 (0)