-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
32 lines (22 loc) · 1.17 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
include radio.makefile
gamaSenseIt: gamaSenseIt.o arduPi.o SX1272.o
g++ -std=c++11 -lrt -lpthread -lpaho-mqtt3c -lbcm2835 gamaSenseIt.o arduPi.o SX1272.o -o gamaSenseIt
carCounter: CarCounter.o arduPi.o SX1272.o Lidar.o
g++ -std=c++11 -o carCounter -lrt -lpthread -lpaho-mqtt3c CarCounter.o arduPi.o SX1272.o Lidar.o -lbcm2835
test.o: test.cpp
gcc -std=c++11 $(CFLAGS) -DRASPBERRY2 -DIS_RCV_GATEWAY -c test.cpp -o test.o
gamaSenseIt.o: GamaSenseIt.cpp GamaSenseIt.h
gcc -std=c++11 $(CFLAGS) -DRASPBERRY2 -DIS_RCV_GATEWAY -c GamaSenseIt.cpp -o gamaSenseIt.o
CarCounter.o: CarCounter.cpp CarCounter.h Lidar.h
g++ -std=c++11 $(CFLAGS) -lrt -lbcm2835 -lpthread -DRASPBERRY2 -DIS_RCV_GATEWAY -c CarCounter.cpp -o CarCounter.o
Lidar.o: Lidar.cpp Lidar.h
g++ -std=c++11 -DRASPBERRY2 $(CFLAGS) -lrt -lpthread -lbcm2835 -DRASPBERRY2 -DIS_RCV_GATEWAY -c Lidar.cpp -o Lidar.o
message.o: Message.cpp Message.h
gcc -c Message.cpp -o message.o
arduPi.o: arduPi_pi2.cpp arduPi_pi2.h
gcc -lrt -lbcm2835 -c arduPi_pi2.cpp -o arduPi.o
SX1272.o: SX1272.cpp SX1272.h
gcc -lrt -lbcm2835 -c SX1272.cpp -o SX1272.o
lib: arduPi.o SX1272.o gamaSenseIt.o
clean:
rm *.o gateway gamaSenseIt test