source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/Capture/makefile @ 61

Last change on this file since 61 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 3.7 KB
Line 
1OBJECTS = CapturedData.o GenericCapture.o PCAPCapture.o Logger.o \
2  PCAPOfflineCapture.o PCAPLiveCapture.o TcpipServer.o TcpipDispatch.o ConnectionController.o \
3  TrafficCapture.o CaptureFactory.o TrafficCaptureMessage.o CommonTrafficCaptureMessages.o \
4  TrafficCaptureMessageFactory.o
5INCLUDES = -I/usr/include/pcap \
6  -I/usr/local/boost_1_39_0 \
7  -I.. \
8# -I/opt/boost-mingw-gcc345-1.38.0/include \
9
10LIBPATH = #-L/usr/lib -L/opt/boost-mingw-gcc345-1.38.0/lib
11#-L/usr/local/boost/stage
12
13CPPFLAGS = #-mno-cygwin
14
15TrafficCapture.exe: $(OBJECTS)
16        g++ $(CPPFLAGS) $(OBJECTS) $(LIBPATH) -o TrafficCapture.exe -lwpcap -lboost_thread-gcc34-mt -lboost_system-gcc34-mt -lboost_filesystem-gcc34-mt
17#-lboost_system-mt -lboost_thread-mt -lws2_32
18
19TrafficCaptureMessage.o : ../Messages/TrafficCaptureMessage.h
20        g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/TrafficCaptureMessage.cpp
21
22../Messages/CommonTrafficCaptureMessages.h : ../Messages/TrafficCaptureMessageId.h ../Messages/TrafficCaptureMessage.h
23
24CommonTrafficCaptureMessages.o : ../Messages/CommonTrafficCaptureMessages.h
25        g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/CommonTrafficCaptureMessages.cpp
26
27../Messages/CaptureData.h : ../Messages/TrafficCaptureMessageId.h ../Messages/TrafficCaptureMessage.h
28
29CapturedData.o : ../Messages/CapturedData.cpp ../Messages/CapturedData.h
30        g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/CapturedData.cpp
31
32../Messages/TrafficCaptureMessageFactory.h : ../Helper/Singleton.h ../Messages/TrafficCaptureMessage.h
33
34TrafficCaptureMessageFactory.o : ../Messages/TrafficCaptureMessageFactory.h ../Messages/TrafficCaptureMessageId.h \
35  ../Messages/CommonTrafficCaptureMessages.h ../Logger/Logger.h
36        g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/TrafficCaptureMessageFactory.cpp
37
38../Logger/Logger.h : ../Messages/CapturedData.h
39
40Logger.o : ../Logger/Logger.cpp ../Logger/Logger.h ../Helper/Singleton.h
41        g++ $(CPPFLAGS) $(INCLUDES) -c ../Logger/Logger.cpp
42
43CaptureDispatch.h : ../Messages/CapturedData.h
44
45GenericCapture.h : ../Messages/CapturedData.h CaptureDispatch.h
46
47GenericCapture.o : GenericCapture.cpp GenericCapture.h ../Logger/Logger.h
48        g++ $(CPPFLAGS) $(INCLUDES) -c GenericCapture.cpp
49
50PCAPCapture.h : GenericCapture.h
51
52PCAPCapture.o : PCAPCapture.cpp PCAPCapture.h ../Logger/Logger.h
53        g++ $(CPPFLAGS) $(INCLUDES) -c PCAPCapture.cpp
54
55PCAPOfflineCapture.h : PCAPCapture.h
56
57PCAPOfflineCapture.o : PCAPOfflineCapture.cpp PCAPOfflineCapture.h
58        g++ $(CPPFLAGS) $(INCLUDES) -c PCAPOfflineCapture.cpp
59
60PCAPLiveCapture.h : PCAPCapture.h ../Logger/Logger.h
61
62PCAPLiveCapture.o : PCAPLiveCapture.cpp PCAPLiveCapture.h
63        g++ $(CPPFLAGS) $(INCLUDES) -c PCAPLiveCapture.cpp
64
65CaptureFactory.h : GenericCapture.h ../Helper/Singleton.h
66
67CaptureFactory.o : CaptureFactory.cpp CaptureFactory.h PCAPLiveCapture.h PCAPOfflineCapture.h ../Logger/Logger.h
68        g++ $(CPPFLAGS) $(INCLUDES) -c CaptureFactory.cpp
69
70ConnectionController.h : TcpipDefs.h GenericCapture.h ../Messages/TrafficCaptureMessage.h TcpipDispatch.h
71
72ConnectionController.o : ConnectionController.cpp ConnectionController.h  ../Logger/Logger.h \
73  ../Messages/TrafficCaptureMessageFactory.h ../Messages/CommonTrafficCaptureMessages.h
74        g++ $(CPPFLAGS) $(INCLUDES) -c ConnectionController.cpp
75
76TcpipServer.h : TcpipDefs.h
77
78TcpipServer.o : TcpipServer.cpp TcpipServer.h ConnectionController.h ../Logger/Logger.h
79        g++ $(CPPFLAGS) $(INCLUDES) -c TcpipServer.cpp
80
81TcpipDispatch.h : TcpipDefs.h CaptureDispatch.h
82
83TcpipDispatch.o : TcpipDispatch.cpp TcpipDispatch.h ../Logger/Logger.h
84        g++ $(CPPFLAGS) $(INCLUDES) -c TcpipDispatch.cpp
85
86TrafficCapture.o : TrafficCapture.cpp TcpipServer.h
87        g++ $(CPPFLAGS) $(INCLUDES) -c TrafficCapture.cpp
88
89clean:
90        rm -f *.o TrafficCapture.exe
Note: See TracBrowser for help on using the repository browser.