Ticket #955: Makefile

File Makefile, 1.4 KB (added by anonymous, 15 years ago)

Makefile

Line 
1BOOST_1_33_1_DIR = boost_1_33_1
2BOOST_1_34_0_DIR = boost_1_34_0
3
4IOSTREAMS_1_33_1_DIR = $(BOOST_1_33_1_DIR)/libs/iostreams/src
5IOSTREAMS_1_34_0_DIR = $(BOOST_1_34_0_DIR)/libs/iostreams/src
6
7IOSTREAMS_SRCS_1_33_1 = $(IOSTREAMS_1_33_1_DIR)/bzip2.cpp \
8 $(IOSTREAMS_1_33_1_DIR)/file_descriptor.cpp \
9 $(IOSTREAMS_1_33_1_DIR)/mapped_file.cpp \
10 $(IOSTREAMS_1_33_1_DIR)/zlib.cpp
11
12IOSTREAMS_SRCS_1_34_0 = $(IOSTREAMS_1_34_0_DIR)/bzip2.cpp \
13 $(IOSTREAMS_1_34_0_DIR)/file_descriptor.cpp \
14 $(IOSTREAMS_1_34_0_DIR)/mapped_file.cpp \
15 $(IOSTREAMS_1_34_0_DIR)/zlib.cpp
16
17LIBS = -lbz2 -lz
18
19all: test_zip_1_33_1 test_zip_1_34_0 test_bzip2_1_33_1 test_bzip2_1_34_0
20
21test_zip_1_33_1: testIostreams.cpp $(IOSTREAMS_SRCS_1_33_1)
22 g++ -o $@ $(CXXFLAGS) -DNUM_LOOPS=40000 -I$(BOOST_1_33_1_DIR) $^ $(LIBS)
23
24test_zip_1_34_0: testIostreams.cpp $(IOSTREAMS_SRCS_1_34_0)
25 g++ -o $@ $(CXXFLAGS) -DNUM_LOOPS=20000 -I$(BOOST_1_34_0_DIR) $^ $(LIBS)
26
27test_bzip2_1_33_1: testIostreams.cpp $(IOSTREAMS_SRCS_1_33_1)
28 g++ -o $@ $(CXXFLAGS) -DUSE_BZIP2 -DNUM_LOOPS=40000 -I$(BOOST_1_33_1_DIR) $^ $(LIBS)
29
30test_bzip2_1_34_0: testIostreams.cpp $(IOSTREAMS_SRCS_1_34_0)
31 g++ -o $@ $(CXXFLAGS) -DUSE_BZIP2 -DNUM_LOOPS=40000 -I$(BOOST_1_34_0_DIR) $^ $(LIBS)
32
33clean:
34 - @ rm -f test_zip_1_33_1 test_zip_1_34_0 test_bzip2_1_33_1 test_bzip2_1_34_0