-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
90 lines (68 loc) · 2.52 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
CC=sdcc
CFLAGS=-Iinclude
CFLAGSold=--no-pack-iram $(CF)
LFLAGS=--xram-loc 0xF000
apps = cc1111rf.rel global.rel
libsvcom = $(apps) cc1111_vcom.rel cc1111_vcomdesc.rel
libsusb = $(apps) cc1111usb.rel cc1111usbdebug.rel
#srcs = $(libs,.rel=.c)
all: chronosapplication.hex
donfw: donapplication.hex
immefw: immeapplication.hex
testrecv: testrecvapplication.hex
testxmit: testxmitapplication.hex
%.rel : %.c
$(CC) $(CFLAGS) -c $<
chronosapplication.hex: application.c $(libsusb)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsusb) -DCHRONOSDONGLE
packihx <application.ihx >bins/application.hex
donapplication.hex: application.c $(libsusb)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsusb) -DDONSDONGLES
packihx <application.ihx >bins/application.hex
immeapplication.hex: application.c $(libsusb)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsusb) -DIMMEDONGLE
packihx <application.ihx >bins/application.hex
testxmitusb.hex: application.c $(libsusb)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsusb) -DCHRONOSDONGLE -DTRANSMIT_TEST
packihx <application.ihx >bins/testxmit.hex
testrecvusb.hex: application.c $(libsusb)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsusb) -DCHRONOSDONGLE -DRECEIVE_TEST
packihx <application.ihx >bins/testrecv.hex
testxmitapplication.hex: application.c $(libsvcom)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsvcom) -DCHRONOSDONGLE -DVIRTUAL_COM -DTRANSMIT_TEST
packihx <application.ihx >bins/testxmit.hex
testrecvapplication.hex: application.c $(libsvcom)
sdcc $(CFLAGS) $(LFLAGS) application.c $(libsvcom) -DCHRONOSDONGLE -DVIRTUAL_COM -DRECEIVE_TEST
packihx <application.ihx >bins/testrecv.hex
installchronosfw: chronosapplication.hex
goodfet.cc erase
goodfet.cc flash bins/application.hex
goodfet.cc info
installdonfw: donapplication.hex
goodfet.cc erase
goodfet.cc flash bins/application.hex
goodfet.cc info
installimmefw: immeapplication.hex
goodfet.cc erase
goodfet.cc flash bins/application.hex
goodfet.cc info
installtestrecvusbfw: testrecvusb.hex
goodfet.cc erase
goodfet.cc flash bins/testrecv.hex
goodfet.cc info
installtestxmitusbfw: testxmitusb.hex
goodfet.cc erase
goodfet.cc flash bins/testxmit.hex
goodfet.cc info
installtestrecvfw: testrecvapplication.hex
goodfet.cc erase
goodfet.cc flash bins/testrecv.hex
goodfet.cc info
installtestxmitfw: testxmitapplication.hex
goodfet.cc erase
goodfet.cc flash bins/testxmit.hex
goodfet.cc info
verify: chronosapplication.hex
goodfet.cc verify bins/application.hex
clean:
rm -f *.ihx *.rel *.hex *.sym *.asm *.lst *.lnk *.map *.mem *.rst