1 # Makefile for HID USB relay utility, hidusbrelay-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 CMD_UTILITY
=hidusb-relay-cmd
14 # For Unix/Linux, Mac OS X:
15 # Using old simple version of libusb
16 USBFLAGS
= `libusb-config --cflags`
17 USBLIBS
= `libusb-config --libs`
20 # Use the following 3 lines on Windows and comment out the 3 above:
22 #USBLIBS= -lhid -lusb -lsetupapi
25 #+pa GCC on my ubuntu won't pick this dir by default ?!
26 #USBFLAGS+=-I/usr/include
30 CFLAGS
= -O
-Wall
$(USBFLAGS
) $(DEBUGFLAGS
)
33 OBJ
= usbrelay-cmd.o hiddata.o
34 PROGRAM
= $(CMD_UTILITY
)$(EXE_SUFFIX
)
39 $(CC
) -o
$(PROGRAM
) $(OBJ
) $(LIBS
)
45 rm -f
$(OBJ
) $(PROGRAM
)
48 $(CC
) $(ARCH_COMPILE
) $(CFLAGS
) -c
$*.c
-o
$*.o