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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
21d81701b5c4 added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
1 DEST = /usr/local
2
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
2 APPS = rcctl
0
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 SRCS = rcctl.c cdcnv.c
2
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
4 OBJS = ${SRCS:.c=.o}
0
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
5 CC = gcc
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
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
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
9
2
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
10 all: $(APPS)
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
11
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
12 rcctl: $(OBJS)
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
13 $(CC) -o $@ $^ $(LDFLAGS)
0
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
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