summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 0000000..65ff73f
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,15 @@
+CC = gcc
+LD = gcc
+CPPFLAGS = -O3
+
+TARGETS = mkromfs
+MKROMFS_SRCS = mkromfs.c
+MKROMFS_OBJS = $(addsuffix .o, $(basename $(MKROMFS_SRCS)))
+
+all: $(TARGETS)
+
+mkromfs: $(MKROMFS_OBJS)
+ $(LD) -o mkromfs $(MKROMFS_OBJS)
+
+clean:
+ rm -rf $(MKROMFS_OBJS) $(TARGETS)