[22] | 1 | OBJECTS = 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
|
---|
| 5 | INCLUDES = -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 |
|
---|
| 10 | LIBPATH = #-L/usr/lib -L/opt/boost-mingw-gcc345-1.38.0/lib
|
---|
| 11 | #-L/usr/local/boost/stage
|
---|
| 12 |
|
---|
| 13 | CPPFLAGS = #-mno-cygwin
|
---|
| 14 |
|
---|
| 15 | TrafficCapture.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 |
|
---|
| 19 | TrafficCaptureMessage.o : ../Messages/TrafficCaptureMessage.h
|
---|
| 20 | g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/TrafficCaptureMessage.cpp
|
---|
| 21 |
|
---|
| 22 | ../Messages/CommonTrafficCaptureMessages.h : ../Messages/TrafficCaptureMessageId.h ../Messages/TrafficCaptureMessage.h
|
---|
| 23 |
|
---|
| 24 | CommonTrafficCaptureMessages.o : ../Messages/CommonTrafficCaptureMessages.h
|
---|
| 25 | g++ $(CPPFLAGS) $(INCLUDES) -c ../Messages/CommonTrafficCaptureMessages.cpp
|
---|
| 26 |
|
---|
| 27 | ../Messages/CaptureData.h : ../Messages/TrafficCaptureMessageId.h ../Messages/TrafficCaptureMessage.h
|
---|
| 28 |
|
---|
| 29 | CapturedData.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 |
|
---|
| 34 | TrafficCaptureMessageFactory.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 |
|
---|
| 40 | Logger.o : ../Logger/Logger.cpp ../Logger/Logger.h ../Helper/Singleton.h
|
---|
| 41 | g++ $(CPPFLAGS) $(INCLUDES) -c ../Logger/Logger.cpp
|
---|
| 42 |
|
---|
| 43 | CaptureDispatch.h : ../Messages/CapturedData.h
|
---|
| 44 |
|
---|
| 45 | GenericCapture.h : ../Messages/CapturedData.h CaptureDispatch.h
|
---|
| 46 |
|
---|
| 47 | GenericCapture.o : GenericCapture.cpp GenericCapture.h ../Logger/Logger.h
|
---|
| 48 | g++ $(CPPFLAGS) $(INCLUDES) -c GenericCapture.cpp
|
---|
| 49 |
|
---|
| 50 | PCAPCapture.h : GenericCapture.h
|
---|
| 51 |
|
---|
| 52 | PCAPCapture.o : PCAPCapture.cpp PCAPCapture.h ../Logger/Logger.h
|
---|
| 53 | g++ $(CPPFLAGS) $(INCLUDES) -c PCAPCapture.cpp
|
---|
| 54 |
|
---|
| 55 | PCAPOfflineCapture.h : PCAPCapture.h
|
---|
| 56 |
|
---|
| 57 | PCAPOfflineCapture.o : PCAPOfflineCapture.cpp PCAPOfflineCapture.h
|
---|
| 58 | g++ $(CPPFLAGS) $(INCLUDES) -c PCAPOfflineCapture.cpp
|
---|
| 59 |
|
---|
| 60 | PCAPLiveCapture.h : PCAPCapture.h ../Logger/Logger.h
|
---|
| 61 |
|
---|
| 62 | PCAPLiveCapture.o : PCAPLiveCapture.cpp PCAPLiveCapture.h
|
---|
| 63 | g++ $(CPPFLAGS) $(INCLUDES) -c PCAPLiveCapture.cpp
|
---|
| 64 |
|
---|
| 65 | CaptureFactory.h : GenericCapture.h ../Helper/Singleton.h
|
---|
| 66 |
|
---|
| 67 | CaptureFactory.o : CaptureFactory.cpp CaptureFactory.h PCAPLiveCapture.h PCAPOfflineCapture.h ../Logger/Logger.h
|
---|
| 68 | g++ $(CPPFLAGS) $(INCLUDES) -c CaptureFactory.cpp
|
---|
| 69 |
|
---|
| 70 | ConnectionController.h : TcpipDefs.h GenericCapture.h ../Messages/TrafficCaptureMessage.h TcpipDispatch.h
|
---|
| 71 |
|
---|
| 72 | ConnectionController.o : ConnectionController.cpp ConnectionController.h ../Logger/Logger.h \
|
---|
| 73 | ../Messages/TrafficCaptureMessageFactory.h ../Messages/CommonTrafficCaptureMessages.h
|
---|
| 74 | g++ $(CPPFLAGS) $(INCLUDES) -c ConnectionController.cpp
|
---|
| 75 |
|
---|
| 76 | TcpipServer.h : TcpipDefs.h
|
---|
| 77 |
|
---|
| 78 | TcpipServer.o : TcpipServer.cpp TcpipServer.h ConnectionController.h ../Logger/Logger.h
|
---|
| 79 | g++ $(CPPFLAGS) $(INCLUDES) -c TcpipServer.cpp
|
---|
| 80 |
|
---|
| 81 | TcpipDispatch.h : TcpipDefs.h CaptureDispatch.h
|
---|
| 82 |
|
---|
| 83 | TcpipDispatch.o : TcpipDispatch.cpp TcpipDispatch.h ../Logger/Logger.h
|
---|
| 84 | g++ $(CPPFLAGS) $(INCLUDES) -c TcpipDispatch.cpp
|
---|
| 85 |
|
---|
| 86 | TrafficCapture.o : TrafficCapture.cpp TcpipServer.h
|
---|
| 87 | g++ $(CPPFLAGS) $(INCLUDES) -c TrafficCapture.cpp
|
---|
| 88 |
|
---|
| 89 | clean:
|
---|
| 90 | rm -f *.o TrafficCapture.exe |
---|