28 lines
801 B
Makefile
28 lines
801 B
Makefile
#Organization: TUKE FEI KEMT 2021
|
|
#Feld of study: 9.2.4 Computer engineering
|
|
#Study program: Computer Networks, Bachelor Study
|
|
#Author: Marek Rohac
|
|
#Compiler: Winlibs GCC (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 10.2.0
|
|
#Description: simply Makefile for OS Windows
|
|
CC=gcc
|
|
CFLAGS= -Wall -Wextra -g
|
|
WINFLAGS = -lbcrypt
|
|
AMDFLAGS = -mrdrnd -mrdseed
|
|
OSSLFLAGS = -I./openssl/include -L./openssl/lib -llibcrypto
|
|
AMDc=./amdINC/secrng.c
|
|
INCLUDEPATH = -I./amdINC
|
|
AMDSPRNG= amdSPRNG
|
|
SOURCES= winAPIprng
|
|
OSSL = openssl_rng
|
|
all: $(SOURCES) $(AMDSPRNG) $(OSSL)
|
|
|
|
$(SOURCES): %: %.c
|
|
$(CC) -o $@ $< $(CFLAGS) $(WINFLAGS)
|
|
|
|
$(AMDSPRNG): %:
|
|
$(CC) $(AMDc) $(AMDSPRNG).c $(CFLAGS) $(INCLUDEPATH) $(AMDFLAGS) -o $@
|
|
|
|
$(OSSL): %: %.c
|
|
$(CC) -o $@ $< $(CFLAGS) $(OSSLFLAGS)
|
|
clean:
|
|
$(RM) *.exe *.bin *.txt
|