summaryrefslogtreecommitdiff
path: root/polux/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'polux/tools/Makefile')
-rw-r--r--polux/tools/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/polux/tools/Makefile b/polux/tools/Makefile
new file mode 100644
index 0000000000..059e3548c1
--- /dev/null
+++ b/polux/tools/Makefile
@@ -0,0 +1,25 @@
+#
+CC := gcc
+OBJ := mtd-utils flashfs genNVRAM mkimagedesc
+DIR=$(shell pwd)
+
+export CC
+
+all: $(OBJ)
+
+mtd-utils:
+ $(MAKE) -C $@ RAWTARGETS="mkfs.jffs2" \
+ CFLAGS="-I./include -O2 \
+ -Wall -I$(shell pwd)/include"
+
+flashfs genNVRAM mkimagedesc: mtd-utils
+ $(MAKE) -C $@
+
+clean:
+ @for i in $(OBJ); do \
+ $(MAKE) -C $$i clean; \
+ done
+
+mrproper: clean
+
+.PHONY: $(OBJ)