3 FIRMWARE_INSTALL_DIR ?= /lib/firmware
7 CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE
11 OBJECTS = fwcutter.o md5.o
13 CFLAGS += -DFWCUTTER_VERSION_=$(VERSION)
18 $(CC) $(CFLAGS) -o fwcutter $(OBJECTS) $(LDFLAGS)
21 -install -o 0 -g 0 -m 755 fwcutter $(PREFIX)/bin/
24 -rm -f *~ *.o *.orig *.rej *.fw fwcutter
27 -if ! [ -d $(FIRMWARE_INSTALL_DIR) ]; then mkdir $(FIRMWARE_INSTALL_DIR); fi
28 -install -o 0 -g 0 -m 600 bcm43xx_*.fw $(FIRMWARE_INSTALL_DIR)
31 fwcutter.o: md5.h fwcutter_list.h