USB-Servo/commandline/Makefile

27 lines
767 B
Makefile
Raw Permalink Normal View History

2006-10-28 14:40:42 +02:00
# $Id: Makefile,v 1.1 2006/10/28 12:40:42 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
USBLIBS = `$(LIBUSB_CONFIG) --libs`
XSPLIBS = -lX11 -lm
all: usb-servo xservopointer
usb-servo: usb-servo.o usbdrv.o
$(CC) $(CFLAGS) -o usb-servo usb-servo.o usbdrv.o $(USBLIBS)
xservopointer: xservopointer.o usbdrv.o
$(CC) $(CFLAGS) -o xservopointer xservopointer.o usbdrv.o $(USBLIBS) $(XSPLIBS)
.c.o:
$(CC) $(CFLAGS) -c $*.c -o $*.o
clean:
rm -f usb-servo xservopointer *.o