Permalink
Browse files

Provide Makefile for building [un]mkbootimg

  • Loading branch information...
1 parent b787cf2 commit 4089a44367b413db63f073e429f18e528dd2d416 @else else committed Feb 28, 2014
Showing with 16 additions and 0 deletions.
  1. +16 −0 Makefile
View
@@ -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 4089a44

Please sign in to comment.