summaryrefslogtreecommitdiffstats
path: root/target/linux/package/bcm43xx-standalone/fwcutter/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-13 11:27:06 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-13 11:27:06 +0000
commite13455d72418a1369b162ca0b4444ba6790336cb (patch)
treede058c20cee3ec6025ca7d0ca42a1df9f057dde6 /target/linux/package/bcm43xx-standalone/fwcutter/Makefile
parent4b1682dd66f82e3c531c607f8fba511b14879ede (diff)
update to a newer snapshot and m. buesch snapshots
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3358 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/bcm43xx-standalone/fwcutter/Makefile')
-rw-r--r--target/linux/package/bcm43xx-standalone/fwcutter/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/package/bcm43xx-standalone/fwcutter/Makefile b/target/linux/package/bcm43xx-standalone/fwcutter/Makefile
new file mode 100644
index 000000000..6402dca85
--- /dev/null
+++ b/target/linux/package/bcm43xx-standalone/fwcutter/Makefile
@@ -0,0 +1,32 @@
+VERSION = 0.0.1
+
+FIRMWARE_INSTALL_DIR ?= /lib/firmware
+
+CC = cc
+PREFIX = /usr/local
+CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -pedantic -D_BSD_SOURCE
+LDFLAGS =
+
+
+OBJECTS = fwcutter.o md5.o
+
+CFLAGS += -DFWCUTTER_VERSION_=$(VERSION)
+
+all: fwcutter
+
+fwcutter: $(OBJECTS)
+ $(CC) $(CFLAGS) -o fwcutter $(OBJECTS) $(LDFLAGS)
+
+install: all
+ -install -o 0 -g 0 -m 755 fwcutter $(PREFIX)/bin/
+
+clean:
+ -rm -f *~ *.o *.orig *.rej *.fw fwcutter
+
+installfw:
+ -if ! [ -d $(FIRMWARE_INSTALL_DIR) ]; then mkdir $(FIRMWARE_INSTALL_DIR); fi
+ -install -o 0 -g 0 -m 600 bcm43xx_*.fw $(FIRMWARE_INSTALL_DIR)
+
+# dependencies
+fwcutter.o: md5.h fwcutter_list.h
+md5.o: md5.h