OSDN Git Service

trunk整理
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7vsd / unit_tests / module_test / protocol_module_sslid_test / Makefile
diff --git a/l7vsd/unit_tests/module_test/protocol_module_sslid_test/Makefile b/l7vsd/unit_tests/module_test/protocol_module_sslid_test/Makefile
new file mode 100644 (file)
index 0000000..1dc9ec2
--- /dev/null
@@ -0,0 +1,36 @@
+#
+#
+#      Makefile for sslid unit test frameworks.
+#
+#
+TARGET         = sslid_ut
+CPP                    = g++
+CPPFLAGS       = -g -Wall -Werror -pthread -O0 -DMAX_BUFFER_SIZE=65535
+INCLUDES       =       -I../../../include \
+                               -I../../../logger \
+                               -I../../../module/protocol
+                               
+LIBS           =       -lboost_system-mt \
+                               -lboost_thread-mt \
+                               -lboost_unit_test_framework-mt
+
+LDFLAGS                = -lrt -ldl
+
+SRCS           =  sslid_ut.cpp
+
+OBJS           = $(SRCS:.cpp=.o)
+
+all:   $(TARGET)
+
+$(TARGET):     $(OBJS)
+       @$(CPP) $(INCLUDES) -o $@ $(OBJS) $(LIBS)
+       @echo "make all done!(^_^)"
+
+clean:
+       @echo "clean...(>_<)"
+       @rm -f $(TARGET) $(OBJS) *.o
+       @echo "clean done!"
+
+.cpp.o:
+       @$(CPP) $(CPPFLAGS) $(INCLUDES) -c $<
+