diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fae9698 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +dtbtool 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 |
