1 # Makefile for HID USB relay utility, usbrelay-cmd
5 # Author: Christian Starkjohann
6 # Creation Date: 2008-04-11
8 # Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
9 # License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
12 # For Unix/Linux, Mac OS X:
13 USBFLAGS
= `libusb-config --cflags`
14 USBLIBS
= `libusb-config --libs`
17 # Use the following 3 lines on Windows and comment out the 3 above:
19 #USBLIBS= -lhid -lusb -lsetupapi
22 #+pa GCC on my ubuntu won't pick this dir by default ?!
23 #USBFLAGS+=-I/usr/include
26 CFLAGS
= -O
-Wall
$(USBFLAGS
)
29 OBJ
= usbrelay-cmd.o hiddata.o
30 PROGRAM
= usbrelay-cmd
$(EXE_SUFFIX
)
35 $(CC
) -o
$(PROGRAM
) $(OBJ
) $(LIBS
)
41 rm -f
$(OBJ
) $(PROGRAM
)
44 $(CC
) $(ARCH_COMPILE
) $(CFLAGS
) -c
$*.c
-o
$*.o