4 CXX_FLAGS=-std=c++11 -Wall -pthread -ggdb
5 CXX_INC=-I./include/ -I./csdk/stack/include -I./csdk/ocsocket/include -I./csdk/ocrandom/include -I./csdk/logger/include
7 # Force metatargets to build:
8 .PHONY: c_sdk simpleserver simpleclient examples
16 cd examples && $(MAKE)
18 simpleserver: OCLib.a simpleserver.o
19 $(CXX) $(CXX_FLAGS) -o simpleserver simpleserver.o OCLib.a csdk/liboctbstack.a
21 simpleclient: OCLib.a simpleclient.o
22 $(CXX) $(CXX_FLAGS) -o simpleclient simpleclient.o OCLib.a csdk/liboctbstack.a
24 OCLib.a: OCPlatform.o OCResource.o OCReflect.o InProcServerWrapper.o InProcClientWrapper.o
25 ar -cvq OCLib.a OCPlatform.o OCResource.o OCReflect.o InProcServerWrapper.o InProcClientWrapper.o
27 OCReflect.o: OCLib/OCReflect.cpp
28 $(CXX) $(CXX_FLAGS) -c OCLib/OCReflect.cpp $(CXX_INC)
30 OCPlatform.o: OCLib/OCPlatform.cpp
31 $(CXX) $(CXX_FLAGS) -c OCLib/OCPlatform.cpp $(CXX_INC)
33 OCResource.o: OCLib/OCResource.cpp
34 $(CXX) $(CXX_FLAGS) -c OCLib/OCResource.cpp $(CXX_INC)
36 InProcServerWrapper.o: OCLib/InProcServerWrapper.cpp
37 $(CXX) $(CXX_FLAGS) -c OCLib/InProcServerWrapper.cpp $(CXX_INC)
39 InProcClientWrapper.o: OCLib/InProcClientWrapper.cpp
40 $(CXX) $(CXX_FLAGS) -c OCLib/InProcClientWrapper.cpp $(CXX_INC)
42 simpleserver.o : examples/simpleserver.cpp
43 $(CXX) $(CXX_FLAGS) -c examples/simpleserver.cpp $(CXX_INC)
45 simpleclient.o : examples/simpleclient.cpp
46 $(CXX) $(CXX_FLAGS) -c examples/simpleclient.cpp $(CXX_INC)
49 rm -f -v OCLib.a *.o simpleserver simpleclient
50 cd examples && $(MAKE) clean
52 cd csdk && $(MAKE) clean
53 cd csdk && $(MAKE) deepclean