-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
43 lines (29 loc) · 1.5 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
all: receive_implicit receive_explicit transmit_implicit transmit_explicit ping pong
LoRa.o: LoRa.c
gcc -c LoRa.c -o LoRa.o -lpigpio -lrt -pthread -lm
tx_implicit_example.o: tx_implicit_example.c
gcc -c tx_implicit_example.c -o tx_implicit_example.o -lpigpio -lrt -pthread -lm
rx_implicit_example.o: rx_implicit_example.c
gcc -c rx_implicit_example.c -o rx_implicit_example.o -lpigpio -lrt -pthread -lm
tx_explicit_example.o: tx_explicit_example.c
gcc -c tx_explicit_example.c -o tx_explicit_example.o -lpigpio -lrt -pthread -lm
rx_explicit_example.o: rx_explicit_example.c
gcc -c rx_explicit_example.c -o rx_explicit_example.o -lpigpio -lrt -pthread -lm
ping.o: ping.c
gcc -c ping.c -o ping.o -lpigpio -lrt -pthread -lm
pong.o: pong.c
gcc -c pong.c -o pong.o -lpigpio -lrt -pthread -lm
ping: LoRa.o ping.o
gcc -o ping ping.o LoRa.o -lpigpio -lrt -pthread -lm
pong: LoRa.o pong.o
gcc -o pong pong.o LoRa.o -lpigpio -lrt -pthread -lm
transmit_explicit: LoRa.o tx_explicit_example.o
gcc -o transmit_explicit tx_explicit_example.o LoRa.o -lpigpio -lrt -pthread -lm
transmit_implicit: LoRa.o tx_implicit_example.o
gcc -o transmit_implicit tx_implicit_example.o LoRa.o -lpigpio -lrt -pthread -lm
receive_explicit: LoRa.o rx_explicit_example.o
gcc -o receive_explicit rx_explicit_example.o LoRa.o -lpigpio -lrt -pthread -lm
receive_implicit: LoRa.o rx_implicit_example.o
gcc -o receive_implicit rx_implicit_example.o LoRa.o -lpigpio -lrt -pthread -lm
clean:
rm *.o receive_*plicit transmit_*plicit ping pong