view Makefile @ 10:83b2f2fc3d4b

revise clean rule
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 31 Oct 2011 14:11:15 +0900
parents 21d81701b5c4
children 1ee15e2dc386
line wrap: on
line source

DEST = /usr/local
APPS = rcctl
SRCS = rcctl.c cdcnv.c
OBJS = ${SRCS:.c=.o}
CC = gcc

CFLAGS = -O0 -Wall -g -I/usr/include/libusb-1.0
LDFLAGS = -lhid -lusb

all: $(APPS)

rcctl: $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)

clean:
	rm -f *.o $(APPS)

install: $(APPS)
	install -m4755 $^ $(DEST)/bin