annotate Makefile @ 11:1ee15e2dc386 default tip

added support for macosx
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 30 Nov 2012 22:10:10 +0900
parents 83b2f2fc3d4b
children
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
11
1ee15e2dc386 added support for macosx
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
7 #CFLAGS = -O0 -Wall -g -I/usr/include/libusb-1.0
1ee15e2dc386 added support for macosx
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 10
diff changeset
8 CFLAGS = -O0 -Wall -g -I/usr/local/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
9 LDFLAGS = -lhid -lusb
0
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10
2
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
11 all: $(APPS)
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
12
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
13 rcctl: $(OBJS)
b16b82dbfe87 massive cleanup
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 1
diff changeset
14 $(CC) -o $@ $^ $(LDFLAGS)
0
e1a1a181c0d7 initial import
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
15
1
05cc06e88a57 modified to make use of libhid to access the device
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 0
diff changeset
16 clean:
10
83b2f2fc3d4b revise clean rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3
diff changeset
17 rm -f *.o $(APPS)
3
21d81701b5c4 added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
18
21d81701b5c4 added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
19 install: $(APPS)
21d81701b5c4 added $(DEST) and install rule
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2
diff changeset
20 install -m4755 $^ $(DEST)/bin