d71ea12b10f624351edb1acab4685725928cf34e
[iot2.git] / benchmarks / Cpp / Lifxtest / Makefile
1 BASE = ../../..
2
3 include $(BASE)/common.mk
4
5 all: so-lifxtest-arm so-lightstub-arm so-roomstub-arm zip
6
7 ARGS = -shared -fpic
8
9 # Lifxtest .so file will be generated for ARM (Raspberry Pi)
10 PHONY += so-lifxtest-arm
11 so-lifxtest-arm:
12         $(ARM_G++) $(ARGS) ./Lifxtest.cpp $(BASE)/iotjava/iotruntime/cpp/socket/Socket.cpp -o $(BIN_DIR)/Lifxtest/Lifxtest.so --std=c++11 -pthread -pg -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/drivers/Cpp/LabRoom/
13         cp ./Lifxtest.config $(BIN_DIR)/Lifxtest
14
15 # Light stub .so file will be generated for ARM (Raspberry Pi)
16 PHONY += so-lightstub-arm
17 so-lightstub-arm:
18         $(ARM_G++) $(ARGS) ./LightBulbTest_Stub.cpp $(BASE)/iotjava/iotruntime/cpp/socket/Socket.cpp -o $(BIN_DIR)/Lifxtest/LightBulbTest_Stub.so --std=c++11 -pthread -pg -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/
19         cp ./Lifxtest.config $(BIN_DIR)/Lifxtest
20
21 # Room stub .so file will be generated for ARM (Raspberry Pi)
22 PHONY += so-roomstub-arm
23 so-roomstub-arm:
24         $(ARM_G++) $(ARGS) ./RoomSmart_Stub.cpp $(BASE)/iotjava/iotruntime/cpp/socket/Socket.cpp -o $(BIN_DIR)/Lifxtest/RoomSmart_Stub.so --std=c++11 -pthread -pg -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/
25         cp ./Lifxtest.config $(BIN_DIR)/Lifxtest
26
27 PHONY += zip
28 zip:
29         cd  $(BIN_DIR)/Lifxtest; zip -r Lifxtest.zip *.so
30
31 .PHONY: $(PHONY)