summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b892864
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CFLAGS=-O2 -g -Wall
+CC=gcc
+PROGNAME=dtbtool
+
+all: dtbtool
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+dtbtool: dtbtool.o
+ $(CC) -g -o dtbtool dtbtool.o
+
+clean:
+ rm -f *.o dtbtool