| 1 | BOOST_1_33_1_DIR = boost_1_33_1
|
|---|
| 2 | BOOST_1_34_0_DIR = boost_1_34_0
|
|---|
| 3 |
|
|---|
| 4 | IOSTREAMS_1_33_1_DIR = $(BOOST_1_33_1_DIR)/libs/iostreams/src
|
|---|
| 5 | IOSTREAMS_1_34_0_DIR = $(BOOST_1_34_0_DIR)/libs/iostreams/src
|
|---|
| 6 |
|
|---|
| 7 | IOSTREAMS_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 |
|
|---|
| 12 | IOSTREAMS_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 |
|
|---|
| 17 | LIBS = -lbz2 -lz
|
|---|
| 18 |
|
|---|
| 19 | all: test_zip_1_33_1 test_zip_1_34_0 test_bzip2_1_33_1 test_bzip2_1_34_0
|
|---|
| 20 |
|
|---|
| 21 | test_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 |
|
|---|
| 24 | test_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 |
|
|---|
| 27 | test_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 |
|
|---|
| 30 | test_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 |
|
|---|
| 33 | clean:
|
|---|
| 34 | - @ rm -f test_zip_1_33_1 test_zip_1_34_0 test_bzip2_1_33_1 test_bzip2_1_34_0
|
|---|