* 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
This commit is contained in:
1 parent
4115aab13d
commit
288cad1c2e
11 files changed
+83
-45
No files matched your search
+5
-3
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user