2012-11-29 16:29:13 +00:00
|
|
|
DEFINES=
|
|
|
|
CC=gcc
|
|
|
|
LD=gcc
|
|
|
|
CFLAGS=-g -std=c99 -W -Wall $(DEFINES) `pkg-config --cflags openssl`
|
|
|
|
LDFLAGS=`pkg-config --libs openssl`
|
2012-12-06 11:16:57 +00:00
|
|
|
BINS=fwdecrypt fwcrypt
|
2012-11-29 16:29:13 +00:00
|
|
|
|
|
|
|
all: $(BINS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
fwdecrypt: fwdecrypt.o samsung.o
|
|
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2012-12-06 11:16:57 +00:00
|
|
|
fwcrypt: fwcrypt.o samsung.o
|
|
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
|
2012-11-29 16:29:13 +00:00
|
|
|
clean:
|
|
|
|
rm -fr *.o $(BINS)
|