2022-02-01 11:45:47 -05:00
|
|
|
CC=sccache gcc
|
|
|
|
CFLAGS=-I include -I test -w
|
|
|
|
SFLAGS=-shared -fPIC
|
|
|
|
DEPS:=$(shell cat ./satan.txt)
|
|
|
|
MAKEFLAGS += --silent
|
2022-03-27 05:23:43 -04:00
|
|
|
TARGET_DIR = bin
|
2022-02-01 11:45:47 -05:00
|
|
|
|
|
|
|
|
2022-03-27 05:05:40 -04:00
|
|
|
all: enc_593.so dec_593.so enc_401.so dec_401.so test_401_full test_593_full
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
2022-03-27 05:23:43 -04:00
|
|
|
test_401_full: $(TARGET_DIR)
|
|
|
|
$(CC) $(DEPS) EES401/URG_Keygen.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
|
|
|
test_593_full:
|
2022-03-27 05:23:43 -04:00
|
|
|
$(CC) $(DEPS) EES593/URG_Keygen.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
2022-03-27 05:23:43 -04:00
|
|
|
enc_593.so: $(TARGET_DIR)
|
|
|
|
$(CC) $(SFLAGS) $(DEPS) EES593/URG_encrypt.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
|
|
|
dec_593.so:
|
2022-03-27 05:23:43 -04:00
|
|
|
$(CC) $(SFLAGS) $(DEPS) EES593/URG_decrypt.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
|
|
|
enc_401.so:
|
2022-03-27 05:23:43 -04:00
|
|
|
$(CC) $(SFLAGS) $(DEPS) EES401/URG_encrypt.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
|
|
|
|
|
|
|
dec_401.so:
|
2022-03-27 05:23:43 -04:00
|
|
|
$(CC) $(SFLAGS) $(DEPS) EES401/URG_decrypt.c -o $(TARGET_DIR)/$@ $(CFLAGS)
|
2022-02-01 11:45:47 -05:00
|
|
|
@echo "Compiled " $@
|
2022-03-27 05:23:43 -04:00
|
|
|
|
|
|
|
bin:
|
|
|
|
test ! -d $(TARGET_DIR) && mkdir $(TARGET_DIR)
|
|
|
|
|
2022-02-01 11:45:47 -05:00
|
|
|
clean:
|
2022-03-27 05:23:43 -04:00
|
|
|
@rm $(TARGET_DIR)/*
|
|
|
|
@echo "$(TARGET_DIR) Cleaned ... "
|