summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Goger <klaus.goger@theobroma-systems.com>2016-07-29 17:52:32 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-07-29 18:17:56 +0200
commit94f6c560eeeb61a95aa35c8cca55f11fbb7cd6db (patch)
tree94f326d77f11fdbda65ad816682c6c0bb41961af /Makefile
parentf67c298916e8adf42e149dc6fdb53d7f2bdb03b1 (diff)
Added Makefile and restructured directory layoutHEADmaster
* Entering make top level should always do useful stuff * added board subdirectories to support different modules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..835411d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+FEX_SRC = $(shell find fex_files -name "*.fex")
+FEX_BIN = $(FEX_SRC:.fex=.bin)
+FEX_CC = tools/sunxi-fexc
+
+all: $(FEX_CC) $(FEX_BIN)
+
+.SUFFIXES: .fex
+
+$(FEX_CC):
+ $(MAKE) -C tools
+
+%.bin: %.fex
+ $(FEX_CC) $< $@
+
+clean:
+ $(MAKE) -C tools clean
+ $(RM) $(FEX_BIN)