view 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
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
CFLAGS = -O0 -Wall -g -I/usr/local/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