6402dca85f0cce6df06f7e3dbb90a2b41a7305cc
[openwrt.git] / target / linux / package / bcm43xx-standalone / 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.040085 seconds and 3 git commands to generate.