1 #Add -DFORCE_PC3_IDENT to CFLAGS to force the identification of
3 CFLAGS
=-Wall
-fPIC
-DUSB_DRIVER_VERSION
="\"$(shell stat -c '%y' usb-driver.c |cut -d\. -f1)\"" #-DFORCE_PC3_IDENT
5 LIBS
=-ldl
-lusb
-lpthread
7 SRC
=usb-driver.c parport.c config.c jtagmon.c
8 HEADER
=usb-driver.h parport.h jtagkey.h config.h jtagmon.h
14 FTDI
:= $(shell libftdi-config
--libs
2>/dev
/null
)
21 SOBJECTS
=libusb-driver.so libusb-driver-DEBUG.so
24 @file libusb-driver.so | grep x86-64
>/dev
/null
&& echo Built library is
64 bit. Run \
`make lib32\' to build a 32 bit version || true
26 libusb-driver.so: $(SRC) $(HEADER) Makefile
27 $(CC) $(CFLAGS) $(SRC) -o $@ $(LIBS) -shared
29 libusb-driver-DEBUG.so: $(SRC) $(HEADER) Makefile
30 $(CC) -DDEBUG $(CFLAGS) $(SRC) -o $@ $(LIBS) -shared
33 $(MAKE) LIBVER=32 clean all
38 .PHONY: clean all lib32