Adding stub and skeleton for Lifxtest and LifxLightBulb; Creating build flow for...
[iot2.git] / iotjava / iotruntime / cpp / iotslave / Makefile
1 BASE = ../../../..
2
3 include $(BASE)/common.mk
4
5 #GCCFLAGS = -Wall -ansi -pedantic -g -std=c++11 -pthread -pg
6 GCCFLAGS = -std=c++11 -pthread -pg
7 INCLUDE =  -I$(BASE)/iotjava/iotruntime/cpp/socket/ -I$(BASE)/iotjava/iotruntime/cpp/ -I$(BASE)/iotjava/iotruntime/cpp/socket/ -I$(BASE)/iotjava/iotruntime/cpp/setrelation/ -I$(BASE)/iotjava/iotrmi/C++/ -I$(BASE)/benchmarks/virtuals/ -I$(BASE)/benchmarks/drivers/Cpp/LifxLightBulb -I$(BASE)/benchmarks/Cpp/Lifxtest/
8 CCCLINKERFLAGS = -ldl
9
10 all: java cpp
11
12 PHONY += java
13 java:
14         javac *.java
15
16 PHONY += cpp
17 cpp:
18         $(G++) $(GCCFLAGS) -o IoTSlave.o IoTSlave.cpp $(INCLUDE) $(CCCLINKERFLAGS)
19
20 PHONY += run
21 run:
22         java IoTSlave
23
24 PHONY += clean
25 clean:
26         rm -rf *.class
27         rm -rf *.o
28         rm -rf *.log
29         rm -rf gmon.out
30
31 .PHONY: $(PHONY)