From ed3cb1d3f8f21a067b30a9d6695515a791895c74 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 12 Jun 2007 23:43:35 +0200 Subject: * Finally integrate libusb in Makefiles. Use 'allusb' target to build a 0xFFFF binary without library dependencies (libusb) * Add 'static' makefile target for building a statically linked 0xFFFF * Documentate all makefile targets in INSTALL --- src/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 7f635d7..5d9203b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,9 +3,17 @@ OBJ=main.o fiasco.o hexdump.o dump.o flash.o serial.o OBJ+=hash.o fpid.o query.o pieces.o utils.o devices.o console.o BIN=0xFFFF CFLAGS+=-DVERSION=\"${VERSION}\" -Wall -g -I . +USBOBJ=../libusb/error.o ../libusb/usb.o ../libusb/descriptors.o +USBOBJ+=../libusb/linux.o ## XXX not portable all: ${OBJ} ${CC} ${LDFLAGS} -o ${BIN} ${OBJ} -lusb +allusb: ${OBJ} + ${CC} ${LDFLAGS} -o ${BIN} ${OBJ} ${USBOBJ} + +static: ${OBJ} + ${CC} ${LDFLAGS} -o ${BIN} -static ${OBJ} ${USBOBJ} + clean: -rm -f ${OBJ} ${BIN} -- cgit v1.2.3