Mercurial > rcctl_linux
diff Makefile @ 3:21d81701b5c4
added $(DEST) and install rule
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 05 Jan 2011 22:28:41 +0900 |
parents | b16b82dbfe87 |
children | 83b2f2fc3d4b |
line wrap: on
line diff
--- a/Makefile Wed Jan 05 21:41:39 2011 +0900 +++ b/Makefile Wed Jan 05 22:28:41 2011 +0900 @@ -1,9 +1,10 @@ +DEST = /usr/local APPS = rcctl SRCS = rcctl.c cdcnv.c OBJS = ${SRCS:.c=.o} CC = gcc -CFLAGS = -O -Wall -g -I/usr/include/libusb-1.0 +CFLAGS = -O0 -Wall -g -I/usr/include/libusb-1.0 LDFLAGS = -lhid -lusb all: $(APPS) @@ -13,3 +14,6 @@ clean: rm -f *.o $(TARGET) + +install: $(APPS) + install -m4755 $^ $(DEST)/bin