Ticket #2984: Makefile

File Makefile, 690 bytes (added by Eric Moyer <eric_moyer@…>, 13 years ago)

Makefile I use to build the bug-reproducing code

Line 
1CXXFLAGS:=-Wall -pedantic -ansi -O3
2BOOSTLIB:=-lboost_serialization-mt
3
4all: boost_serialize_protected_bug
5all: boost_serialize_protected_bug_minimal
6
7debug: CXXFLAGS:=$(CXXFLAGS) -g
8debug: BOOSTLIB:=-lboost_serialization-mt-d
9debug: all
10
11boost_serialize_protected_bug: boost_serialize_protected_bug.o
12 g++ -o $@ $^ $(BOOSTLIB)
13
14boost_serialize_protected_bug.o: boost_serialize_protected_bug.cc
15
16boost_serialize_protected_bug_minimal: boost_serialize_protected_bug_minimal.o
17 g++ -o $@ $^ $(BOOSTLIB)
18
19boost_serialize_protected_bug_minimal.o: boost_serialize_protected_bug_minimal.cc
20
21clean:
22 -rm *.o bugtry.out
23 -rm boost_serialize_protected_bug
24 -rm boost_serialize_protected_bug_minimal