-
Notifications
You must be signed in to change notification settings - Fork 117
/
Makefile
62 lines (51 loc) · 1.56 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
all: lib hackrf subdirs
travis:
$(MAKE) ADDFLAGS=-Werror lib hackrf subdirs
$(MAKE) -C smartflash test
subdirs:
$(MAKE) -C campapp
$(MAKE) -C ccccmaze
$(MAKE) -C testapp
$(MAKE) -C musicapp
$(MAKE) -C rfapp
$(MAKE) -C rflib
$(MAKE) -C l0unge
$(MAKE) -C bootloader
$(MAKE) -C flashapp
$(MAKE) -C l0dables
$(MAKE) -C smartflash
libopencm3/README:
git submodule init
git submodule update
libopencm3/lib/libopencm3_lpc43xx.a:
$(MAKE) -C libopencm3
lib: libopencm3/README libopencm3/lib/libopencm3_lpc43xx.a
hackrf-old/Readme.md:
git submodule init
git submodule update
hackrf/Readme.md:
git submodule init
git submodule update
hackrf/firmware/libopencm3/README:
cd hackrf && git submodule init && git submodule update
hackrf/firmware/hackrf_usb/build/hackrf_usb_ram.bin: hackrf/firmware/libopencm3/README hackrf.patch
mkdir -p hackrf/firmware/hackrf_usb/build
(cd hackrf && patch -N -p1 -r - < ../hackrf.patch; echo "Patching done")
cmake -B hackrf/firmware/hackrf_usb/build/ -S hackrf/firmware/hackrf_usb/ -DBOARD=RAD1O
$(MAKE) -C hackrf/firmware/hackrf_usb/build/
hackrf: hackrf-old/Readme.md hackrf/Readme.md hackrf/firmware/hackrf_usb/build/hackrf_usb_ram.bin
clean:
$(MAKE) -C campapp clean
$(MAKE) -C ccccmaze clean
$(MAKE) -C testapp clean
$(MAKE) -C musicapp clean
$(MAKE) -C rfapp clean
$(MAKE) -C rflib clean
$(MAKE) -C l0unge clean
$(MAKE) -C bootloader clean
$(MAKE) -C flashapp clean
$(MAKE) -C l0dables clean
$(MAKE) -C smartflash clean
$(MAKE) -C hackrf-old hack-clean
rm -rf hackrf/firmware/hackrf_usb/build/
$(MAKE) -C libopencm3 clean