blob: 94d23b2276e079a4222dcf4a6633a92ceb1317ce (
plain)
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
|
clean:
rm -f test_*
rm -f obj/*.o
all: test_loragw_spi test_loragw_reg test_loragw_hal
test_loragw_spi: obj/test_loragw_spi.o obj/loragw_spi.o
gcc obj/test_loragw_spi.o obj/loragw_spi.o -o test_loragw_spi
test_loragw_reg: obj/test_loragw_reg.o obj/loragw_reg.o obj/loragw_spi.o
gcc obj/test_loragw_reg.o obj/loragw_reg.o obj/loragw_spi.o -o test_loragw_reg
test_loragw_hal: obj/test_loragw_hal.o obj/loragw_hal.o obj/loragw_reg.o obj/loragw_spi.o obj/loragw_aux.o
gcc obj/test_loragw_hal.o obj/loragw_hal.o obj/loragw_reg.o obj/loragw_spi.o obj/loragw_aux.o -lrt -o test_loragw_hal
obj/loragw_aux.o: src/loragw_aux.c inc/loragw_aux.h
gcc -c -O2 -Iinc src/loragw_aux.c -o obj/loragw_aux.o
obj/loragw_spi.o: src/loragw_spi.c inc/loragw_spi.h
gcc -c -O2 -std=c99 -Iinc src/loragw_spi.c -o obj/loragw_spi.o
obj/loragw_reg.o: src/loragw_reg.c inc/loragw_reg.h inc/loragw_spi.h
gcc -c -O2 -std=c99 -Iinc src/loragw_reg.c -o obj/loragw_reg.o
obj/loragw_hal.o: src/loragw_hal.c src/arb_fw.var src/agc_fw.var inc/loragw_hal.h inc/loragw_reg.h inc/loragw_spi.h inc/loragw_aux.h
gcc -c -O2 -std=c99 -Iinc src/loragw_hal.c -o obj/loragw_hal.o
obj/test_loragw_spi.o: test/test_loragw_spi.c inc/loragw_spi.h
gcc -c -std=c99 -Iinc test/test_loragw_spi.c -o obj/test_loragw_spi.o
obj/test_loragw_reg.o: test/test_loragw_reg.c inc/loragw_reg.h
gcc -c -std=c99 -Iinc test/test_loragw_reg.c -o obj/test_loragw_reg.o
obj/test_loragw_hal.o: test/test_loragw_hal.c inc/loragw_hal.h inc/loragw_aux.h
gcc -c -std=c99 -Iinc test/test_loragw_hal.c -o obj/test_loragw_hal.o
|