do not treat warnings as errors for madwifi (needed for gcc4)
[openwrt.git] / openwrt / target / linux / package / bcm43xx-dscape / fwcutter / Makefile
1 VERSION = 0.0.1
2
3 FIRMWARE_INSTALL_DIR ?= /lib/firmware
4
5 CC = cc
6 PREFIX = /usr/local
7 CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE
8 LDFLAGS =
9
10
11 OBJECTS = fwcutter.o md5.o
12
13 CFLAGS += -DFWCUTTER_VERSION_=$(VERSION)
14
15 all: fwcutter
16
17 fwcutter: $(OBJECTS)
18 $(CC) $(CFLAGS) -o fwcutter $(OBJECTS) $(LDFLAGS)
19
20 install: all
21 -install -o 0 -g 0 -m 755 fwcutter $(PREFIX)/bin/
22
23 clean:
24 -rm -f *~ *.o *.orig *.rej *.fw fwcutter
25
26 installfw:
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)
29
30 # dependencies
31 fwcutter.o: md5.h fwcutter_list.h
32 md5.o: md5.h
This page took 0.046366 seconds and 5 git commands to generate.