2 # Project: hid-custom-rq example
3 # Author: Christian Starkjohann
4 # Creation Date: 2008-04-06
6 # Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
7 # License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
8 # This Revision: $Id: Makefile 692 2008-11-07 15:07:40Z cs $
11 # Concigure the following definitions according to your system.
12 # This Makefile has been tested on Mac OS X, Linux and Windows.
14 # Use the following 3 lines on Unix (uncomment the framework on Mac OS X):
15 USBFLAGS = `libusb-config --cflags`
16 USBLIBS = `libusb-config --libs`
19 # Use the following 3 lines on Windows and comment out the 3 above. You may
20 # have to change the include paths to where you installed libusb-win32
21 #USBFLAGS = -I/usr/local/include
22 #USBLIBS = -L/usr/local/lib -lusb
27 OBJECTS = opendevice.o hexdump.o main.o
30 CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall
33 PROGRAM = $(NAME)$(EXE_SUFFIX)
41 $(PROGRAM): $(OBJECTS)
42 $(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)