aboutsummaryrefslogtreecommitdiff
path: root/util/bimgtool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/bimgtool/Makefile')
-rw-r--r--util/bimgtool/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/bimgtool/Makefile b/util/bimgtool/Makefile
new file mode 100644
index 0000000000..3bd0f07a7d
--- /dev/null
+++ b/util/bimgtool/Makefile
@@ -0,0 +1,17 @@
+obj ?= $(shell pwd)
+
+HOSTCC ?= gcc
+CFLAGS ?= -g
+CFLAGS += -D_7ZIP_ST
+CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
+CFLAGS += -Wstrict-aliasing -Wshadow -Werror
+LDFLAGS += -g
+
+all: dep $(obj)/bimgtool
+
+clean:
+ rm -f $(obj)/bimgtool
+
+$(obj)/bimgtool: bimgtool.c
+ $(HOSTCC) $(CFLAGS) -o $@ $^