-
Notifications
You must be signed in to change notification settings - Fork 67
/
Makefile
executable file
·70 lines (48 loc) · 1.28 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
CC = gcc
LIBS = -lreadline
CFLAGS = -O2 -g -Wno-unused-result -Wunused
OBJS = hdlc.o qcio.o memio.o chipconfig.o
.PHONY: all clean
all: qcommand qrmem qrflash qdload mibibsplit qwflash qwdirect qefs qnvram qblinfo qident qterminal qbadblock qflashparm
clean:
rm *.o
rm $(all)
#.c.o:
# $(CC) -o $@ $(LIBS) $^ qcio.o
qcio.o: qcio.c
hdlc.o: hdlc.c
sahara.o: sahara.c
chipconfig.o: chipconfig.c
memio.o: memio.c
ptable.o: ptable.c
# $(CC) -c qcio.c
qcommand: qcommand.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qrmem: qrmem.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qrflash: qrflash.o $(OBJS) ptable.o
gcc $^ -o $@ $(LIBS)
qwflash: qwflash.o $(OBJS)
gcc $^ -o $@ $(LIBS)
#qwimage: qwimage.o $(OBJS)
# gcc $^ -o $@ $(LIBS)
qdload: qdload.o sahara.o $(OBJS) ptable.o
gcc $^ -o $@ $(LIBS)
qwdirect: qwdirect.o $(OBJS) ptable.o
gcc $^ -o $@ $(LIBS)
qefs : qefs.o efsio.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qnvram : qnvram.o $(OBJS)
gcc $^ -o $@ $(LIBS)
mibibsplit: mibibsplit.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qblinfo: qblinfo.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qident: qident.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qterminal: qterminal.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qbadblock: qbadblock.o $(OBJS) ptable.o
gcc $^ -o $@ $(LIBS)
qflashparm: qflashparm.o $(OBJS)
gcc $^ -o $@ $(LIBS)