-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (57 loc) · 3.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
POPCC=popcc -cpp11 -g -no-async-allocation
INC=-IlineComm -I/usr/include/jsoncpp
LIBS=-ljsoncpp
all: POPSensor.obj SensorProxy.obj main_plot main_demo main_fribourg main_fribourg_remote main_geneve main_test_led objects.map
clean:
rm -f *.o *.obj main main_demo main_test_led objects.map
popwin_messages.o: lineComm/popwin_messages.c
g++ -c lineComm/popwin_messages.c -o popwin_messages.o
%.stub.o: %.ph
${POPCC} ${INC} -parclass-nobroker -c $< -o $@
%.phstub.o: %.ph
${POPCC} ${INC} -c $< -o $@
%.obj.o: %.cc
${POPCC} ${INC} -c $< -o $@
%.o: %.cc
${POPCC} ${INC} -c $< -o $@
POPSensor.obj: POPSensor.obj.o POPSensor.phstub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -object -o POPSensor.obj POPSensor.obj.o POPSensor.phstub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
SensorProxy.obj: SensorProxy.obj.o SensorProxy.phstub.o POPSensor.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -object -o SensorProxy.obj SensorProxy.obj.o SensorProxy.phstub.o POPSensor.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main: main.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main main.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_example: main_example.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_example main_example.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_plot: main_plot.o POPSensorData.o popwin_messages.o
${POPCC} ${INC} -o main_plot main_plot.o popwin_messages.o POPSensorData.o ${LIBS}
main_demo: main_demo.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_demo main_demo.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_fribourg: main_fribourg.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_fribourg main_fribourg.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_fribourg_remote: main_fribourg_remote.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_fribourg_remote main_fribourg_remote.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_geneve: main_geneve.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_geneve main_geneve.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
main_test_led: main_test_led.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o
${POPCC} ${INC} -o main_test_led main_test_led.o POPSensor.stub.o SensorProxy.stub.o popwin_messages.o POPSensorData.o ${LIBS}
objects.map: POPSensor.obj SensorProxy.obj
./POPSensor.obj -listlong > objects.map
./SensorProxy.obj -listlong >> objects.map
run:
popcrun objects.map ./main resources.json
demo:
popcrun objects.map ./main_demo localhost INOUT.json 160.98.61.190 IN.json
fribourg:
popcrun objects.map ./main_fribourg localhost fribourg.json
fribourg_remote:
popcrun objects.map ./main_fribourg_remote 160.98.61.62 fribourg_remote.json
geneve:
popcrun objects.map ./main_geneve localhost geneve.json
test_led:
popcrun objects.map ./main_test_led localhost led.json
documentation:
ln -s POPSensor.ph POPSensor.h
ln -s SensorProxy.ph SensorProxy.h
doxygen
rm POPSensor.h
rm SensorProxy.h