OSDN Git Service

ソースツリー再構成中(ほぼOK?)
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7vsd / unit_tests / module_test / http_protocol_module_base_test / Makefile
1 #
2 #
3 #       Makefile for http_protocol_module_base unit test frameworks.
4 #
5 #
6 TARGET          = http_protocol_module_base_ut
7 CPP                     = g++
8 CPPFLAGS        = -O0 -g -Werror -Wall -pthread -DMAX_BUFFER_SIZE=65535 -DDEBUG
9 INCLUDES        =       -I../../../logger \
10                                 -I../../../parameter \
11                                 -I../../../include \
12                                 -I../../../module/protocol \
13                                 -I../../../src
14 LIBS            =       -lboost_system-gcc41-mt \
15                                 -lboost_thread-gcc41-mt \
16                                 -lboost_regex-gcc41-mt \
17                                 -lboost_unit_test_framework-gcc41-mt
18
19 LDFLAGS         = -lrt -ldl
20
21 SRCS            =       \
22                         ../../../module/protocol/http_protocol_module_base.cpp \
23                         http_protocol_module_base_test.cpp
24
25
26 .SUFFIX:        .cpp .o
27 .cpp.o:
28                 $(CPP) $(CPPFLAGS) $(INCLUDES) -c $< -o $@
29
30 OBJS            = $(SRCS:.cpp=.o)
31
32 all:    $(TARGET)
33
34 $(TARGET):      $(OBJS)
35         $(CPP) $(INCLUDES) -o $@ $(OBJS) $(LIBS)
36
37 clean:
38         rm -f $(TARGET) $(OBJS)