Mercurial > rcctl_linux
annotate Makefile @ 10:83b2f2fc3d4b
revise clean rule
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 31 Oct 2011 14:11:15 +0900 |
parents | 21d81701b5c4 |
children | 1ee15e2dc386 |
rev | line source |
---|---|
3
21d81701b5c4
added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2
diff
changeset
|
1 DEST = /usr/local |
2 | 2 APPS = rcctl |
0 | 3 SRCS = rcctl.c cdcnv.c |
2 | 4 OBJS = ${SRCS:.c=.o} |
0 | 5 CC = gcc |
6 | |
3
21d81701b5c4
added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2
diff
changeset
|
7 CFLAGS = -O0 -Wall -g -I/usr/include/libusb-1.0 |
1
05cc06e88a57
modified to make use of libhid to access the device
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
0
diff
changeset
|
8 LDFLAGS = -lhid -lusb |
0 | 9 |
2 | 10 all: $(APPS) |
11 | |
12 rcctl: $(OBJS) | |
13 $(CC) -o $@ $^ $(LDFLAGS) | |
0 | 14 |
1
05cc06e88a57
modified to make use of libhid to access the device
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
0
diff
changeset
|
15 clean: |
10 | 16 rm -f *.o $(APPS) |
3
21d81701b5c4
added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2
diff
changeset
|
17 |
21d81701b5c4
added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2
diff
changeset
|
18 install: $(APPS) |
21d81701b5c4
added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
2
diff
changeset
|
19 install -m4755 $^ $(DEST)/bin |