diff options
author | pancake <pancake@pluna> | 2008-01-14 11:25:08 +0100 |
---|---|---|
committer | pancake <pancake@pluna> | 2008-01-14 11:25:08 +0100 |
commit | 288cad1c2e401e5dfbd029b95f62ca05c85d3d61 (patch) | |
tree | ac2652d1998dc9e641d49e367b3a853b2728b6c8 /src/Makefile | |
parent | 4115aab13d70bbe8300562bcd789cc5bc27c8ded (diff) | |
download | 0xFFFF-288cad1c2e401e5dfbd029b95f62ca05c85d3d61.tar.bz2 |
* Up to 0.3.2
* Add HAVE_USB to config.mk
- Now is possible to build a usb-less version of the flasher
(only for unpacking and so, offline operations)
* Refactor varname. Avoid portability problems:
- reboot -> moboreboot
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 1ac4058..de2ba2e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,14 +1,16 @@ -VERSION=0.3 +include ../config.mk 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 +#LIBS=`${HAVE_USB} && echo -- '-lusb'` +LIBS=`if [ "${HAVE_USB}" = 1 ]; then echo '-lusb'; fi` CFLAGS+=-DVERSION=\"${VERSION}\" -Wall -g -I . -CFLAGS+=-pedantic -std=c99 +CFLAGS+=-pedantic -std=c99 -DHAVE_USB=${HAVE_USB} 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 + ${CC} ${LDFLAGS} -o ${BIN} ${OBJ} ${LIBS} allusb: ${OBJ} ${CC} ${LDFLAGS} -o ${BIN} ${OBJ} ${USBOBJ} |