fb43a137e7
The new tool fwcrypt can create a firmware image with a specified model, version, region and so on. Change-Id: I0e90e9ab905398a3e7ae3f4fb8b8bbfb2d12d703
20 lines
350 B
Makefile
20 lines
350 B
Makefile
DEFINES=
|
|
CC=gcc
|
|
LD=gcc
|
|
CFLAGS=-g -std=c99 -W -Wall $(DEFINES) `pkg-config --cflags openssl`
|
|
LDFLAGS=`pkg-config --libs openssl`
|
|
BINS=fwdecrypt fwcrypt
|
|
|
|
all: $(BINS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
fwdecrypt: fwdecrypt.o samsung.o
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
fwcrypt: fwcrypt.o samsung.o
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr *.o $(BINS)
|