Mercurial > rcctl_linux
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 |
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 | |
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 | 10 |
2 | 11 all: $(APPS) |
12 | |
13 rcctl: $(OBJS) | |
14 $(CC) -o $@ $^ $(LDFLAGS) | |
0 | 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 | 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 |