# $Id: Makefile,v 1.1 2006/09/26 18:18:27 rschaten Exp $

CC              = gcc
LIBUSB_CONFIG   = libusb-config
# Make sure that libusb-config is in the search path or specify a full path. On
# Windows, there is no libusb-config and you must configure the options below
# manually. See examples.

CFLAGS          = `$(LIBUSB_CONFIG) --cflags` -O -Wall -I../common

LIBS            = `$(LIBUSB_CONFIG) --libs`

all: usb-led-fader

.c.o:
	$(CC) $(CFLAGS) -c $<

usb-led-fader: usb-led-fader.o
	$(CC) -o usb-led-fader usb-led-fader.o $(LIBS)

clean:
	rm -f *.o
	rm -f usb-led-fader