forked from robertoandrade/playfair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (15 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
#LIBS=-ldns_sd -L/opt/vc/src/hello_pi/libs/ilclient -L/opt/vc/lib/ -lbcm_host -lvcos -lvchiq_arm -lilclient -lopenmaxil
CFLAGS+="-DXHAVE_OPENMAX -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi"
endif
LIB_OBJECT_FILES=modified_md5.o sap_hash.o hand_garble.o playfair.o omg_hax.o
%.o: %.c
gcc -c $(CFLAGS) -std=c99 -fgnu89-inline -Wno-deprecated-declarations -fPIC -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/src/hello_pi/libs/ilclient -I/opt/local/include -c $< -o $@
playfair: $(LIB_OBJECT_FILES) bplist.o mirror_http.o
gcc -std=c99 -Wno-deprecated-declarations $^ -o playfair -lcrypto -lpthread -lm $(LIBS)
libplayfair: $(LIB_OBJECT_FILES)
gcc -shared $^ -o libplayfair.so -lcrypto -lpthread -lm
clean:
rm -f *.o *.so
rm -f playfair