Mercurial > rcctl_linux
comparison Makefile @ 1:05cc06e88a57
modified to make use of libhid to access the device
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Fri, 24 Dec 2010 15:28:04 +0900 |
| parents | e1a1a181c0d7 |
| children | b16b82dbfe87 |
comparison
equal
deleted
inserted
replaced
| 0:e1a1a181c0d7 | 1:05cc06e88a57 |
|---|---|
| 1 # $Id: Makefile,v 1.1 2002/12/21 01:13:27 tosy Exp $ | 1 # $Id: Makefile,v 1.1 2002/12/21 01:13:27 tosy Exp $ |
| 2 | 2 |
| 3 TARGET = rcctl | 3 TARGET = rcctl |
| 4 SRCS = rcctl.c cdcnv.c | 4 SRCS = rcctl.c cdcnv.c |
| 5 OBJS = rcctl.o cdcnv.o | |
| 5 CC = gcc | 6 CC = gcc |
| 6 CCOPT = -O -lusb -Wall | |
| 7 | 7 |
| 8 all: | 8 # for debug build |
| 9 $(CC) $(CCOPT) -o $(TARGET) $(SRCS) | 9 CFLAGS = -O -Wall -g -DVERBOSE -DDEBUG -I/usr/include/libusb-1.0 |
| 10 # for release build | |
| 11 #CFLAGS = -O -Wall | |
| 12 LDFLAGS = -lhid -lusb | |
| 10 | 13 |
| 11 debug: | 14 all: $(OBJS) |
| 12 $(CC) $(CCOPT) -DVERBOSE -DDEBUG -o $(TARGET) $(SRCS) | 15 $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) |
| 13 | 16 |
| 17 clean: | |
| 18 rm -f *.o $(TARGET) |
