-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (22 loc) · 946 Bytes
/
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
all: bme280sensor windsensor rainsensor wu utils weatherdata weather
sqlite3: sqlite3.c sqlite3.h
gcc -c sqlite3.c
sqlitedb: sqlitedb.cpp sqlitedb.h
g++ -c -std=c++11 sqlitedb.cpp
bme280sensor: bme280sensor.cpp bme280sensor.h
g++ -c -std=c++11 bme280sensor.cpp
windsensor: windsensor.cpp windsensor.h
g++ -c -std=c++11 windsensor.cpp
rainsensor: rainsensor.cpp rainsensor.h
g++ -c -std=c++11 rainsensor.cpp
wu: wu.cpp wu.h
g++ -c -std=c++11 wu.cpp
utils: utils.cpp utils.h
g++ -c -std=c++11 utils.cpp
weatherdata: weatherdata.cpp weatherdata.h
g++ -c -std=c++11 weatherdata.cpp
weather: bme280sensor windsensor rainsensor sqlitedb utils weatherdata wu main.cpp
g++ -o weather -std=c++11 main.cpp bme280sensor.o windsensor.o rainsensor.o wu.o utils.o weatherdata.o sqlite3.o sqlitedb.o -lwiringPi -lpthread -ldl
strip weather
clean:
rm -f weather bme280sensor.o windsensor.o rainsensor.o utils.o wu.o weatherdata.o sqlitedb.o