forked from forth32/qtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·54 lines (37 loc) · 892 Bytes
/
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
CC = gcc
LIBS = -lreadline
CFLAGS = -O2 -g -Wno-unused-result
OBJS = hdlc.o qcio.o memio.o
.PHONY: all clean
all: qcommand qrmem qrflash qdload mibibsplit qwflash qwdirect qefs qnvram qblinfo
clean:
rm *.o
rm $(all)
#.c.o:
# $(CC) -o $@ $(LIBS) $^ qcio.o
qcio.o: qcio.c
hdlc.o: hdlc.c
memio.o: memio.c
# $(CC) -c qcio.c
qcommand: qcommand.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qrmem: qrmem.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qrflash: qrflash.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qwflash: qwflash.o $(OBJS)
gcc $^ -o $@ $(LIBS)
#qwimage: qwimage.o $(OBJS)
# gcc $^ -o $@ $(LIBS)
qdload: qdload.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qwdirect: qwdirect.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qefs : qefs.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qnvram : qnvram.o $(OBJS)
gcc $^ -o $@ $(LIBS)
mibibsplit: mibibsplit.o $(OBJS)
gcc $^ -o $@ $(LIBS)
qblinfo: qblinfo.o
gcc $^ -o $@