Skip to content
Browse files

Merge pull request #1 from else/master

Provide Makefile for building [un]mkbootimg
  • Loading branch information...
2 parents b787cf2 + 4089a44 commit 769d10879563eff556156de3de3dda5fe2bc9a50 @pbatard committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 Makefile
View
16 Makefile
@@ -0,0 +1,16 @@
+CFLAGS += -Wall -Wextra -Wno-unused-parameter -pedantic -pipe
+CFLAGS += -std=c99 -D_GNU_SOURCE
+CFLAGS += -Iinclude
+
+all: mkbootimg/mkbootimg mkbootimg/unmkbootimg
+
+mkbootimg/mkbootimg: libmincrypt/sha.o libmincrypt/rsa.o libmincrypt/sha256.o mkbootimg/mkbootimg.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+mkbootimg/unmkbootimg: mkbootimg/unmkbootimg.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -f **/*.o
+
+.PHONY: clean

0 comments on commit 769d108

Please sign in to comment.
Something went wrong with that request. Please try again.