rockbox/utils/samsungtools/Makefile
Amaury Pouly fb43a137e7 samsungtool: allow firmware creation
The new tool fwcrypt can create a firmware image with a specified
model, version, region and so on.

Change-Id: I0e90e9ab905398a3e7ae3f4fb8b8bbfb2d12d703
2012-12-06 12:17:50 +01:00

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)