-
Notifications
You must be signed in to change notification settings - Fork 547
/
Makefile
31 lines (22 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CXX=g++
CXXFLAGS=-Isupport -DVALGRIND_FRIENDLY -g -Wall `pkg-config --cflags apr-1 apr-util-1`
AP2_FLAGS=-I../ext/apache2
AP2_OBJECTS=CxxTestMain.o MessageChannelTest.o SpawnManagerTest.o ApplicationPoolClientServerTest.o \
StandardApplicationPoolTest.o
.PHONY: test_all clean
test_all: Apache2ModuleTests
./Apache2ModuleTests
Apache2ModuleTests: $(AP2_OBJECTS)
$(CXX) $(AP2_OBJECTS) -o Apache2ModuleTests `pkg-config --libs apr-1 apr-util-1` -lboost_thread
CxxTestMain.o: CxxTestMain.cpp
$(CXX) $(CXXFLAGS) -c CxxTestMain.cpp
MessageChannelTest.o: MessageChannelTest.cpp ../ext/apache2/MessageChannel.h
$(CXX) $(CXXFLAGS) $(AP2_FLAGS) -c MessageChannelTest.cpp
SpawnManagerTest.o: SpawnManagerTest.cpp ../ext/apache2/SpawnManager.h
$(CXX) $(CXXFLAGS) $(AP2_FLAGS) -c SpawnManagerTest.cpp
ApplicationPoolClientServerTest.o: ApplicationPoolClientServerTest.cpp ApplicationPoolTestTemplate.cpp ../ext/apache2/ApplicationPoolClientServer.h
$(CXX) $(CXXFLAGS) $(AP2_FLAGS) -c ApplicationPoolClientServerTest.cpp
StandardApplicationPoolTest.o: StandardApplicationPoolTest.cpp ApplicationPoolTestTemplate.cpp ../ext/apache2/ApplicationPool.h
$(CXX) $(CXXFLAGS) $(AP2_FLAGS) -c StandardApplicationPoolTest.cpp
clean:
rm -f Apache2ModuleTests *.o