summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..886441a
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,16 @@
+BINDIR := $(shell [ -x ../../../gfxboot-compile ] && echo ../../../ )
+
+GFXBOOT_COMPILE = $(BINDIR)gfxboot-compile
+BFLAGS = -O -v -L ../..
+
+all: main.bin
+
+main.bin: main.bc *.inc ../po/.ready
+ $(GFXBOOT_COMPILE) $(BFLAGS) -l main.log -c main.bc $@
+
+../po/.ready:
+ make -C ../po
+
+clean:
+ rm -f main.bin *.log *~
+