summaryrefslogtreecommitdiffstats
path: root/utils/samsungtools/Makefile
blob: 1179de52439403e7b64e982bbd1beca50d9e7cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)