3f2913bb02
* Added all make option to Makefile * Added broker and subscriber setup on readme.md
38 lines
866 B
Makefile
38 lines
866 B
Makefile
CC=sccache gcc
|
|
CFLAGS=-I include -I test -w
|
|
SFLAGS=-shared -fPIC
|
|
DEPS:=$(shell cat ./satan.txt)
|
|
|
|
MAKEFLAGS += --silent
|
|
|
|
|
|
all: enc_593.so dec_593.so enc_401.so dec_401.so test_401_full test_593_full
|
|
@echo "Compiled " $@
|
|
|
|
test_401_full:
|
|
$(CC) $(DEPS) EES401/URG_Keygen.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
|
|
test_593_full:
|
|
$(CC) $(DEPS) EES593/URG_Keygen.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
|
|
enc_593.so:
|
|
$(CC) $(SFLAGS) $(DEPS) EES593/URG_encrypt.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
|
|
dec_593.so:
|
|
$(CC) $(SFLAGS) $(DEPS) EES593/URG_decrypt.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
|
|
enc_401.so:
|
|
$(CC) $(SFLAGS) $(DEPS) EES401/URG_encrypt.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
|
|
dec_401.so:
|
|
$(CC) $(SFLAGS) $(DEPS) EES401/URG_decrypt.c -o bin/$@ $(CFLAGS)
|
|
@echo "Compiled " $@
|
|
clean:
|
|
@rm bin/*
|
|
@echo "Bin Cleaned ... "
|