Mercurial > rcctl_linux
annotate Makefile @ 6:cd846ca24ca4
more cleanup
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 05 Jan 2011 22:32:50 +0900 |
parents | 21d81701b5c4 |
children | 83b2f2fc3d4b |
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: |
05cc06e88a57
modified to make use of libhid to access the device
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
0
diff
changeset
|
16 rm -f *.o $(TARGET) |
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 |