22 lines
662 B
Makefile
22 lines
662 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
|
|
OSSLFLAGS = -I./openssl/include -L./openssl/lib -llibcrypto
|
|
OSSL = openssl
|
|
SOURCES= bcryptgenrandom cryptgenrandom cycleMeasure rand rands timeMeasuring rtlgenrandom
|
|
all: $(OSSL) $(SOURCES)
|
|
|
|
$(OSSL): %: %.c
|
|
$(CC) -o $@ $< $(CFLAGS) $(OSSLFLAGS)
|
|
|
|
$(SOURCES): %: %.c
|
|
$(CC) -o $@ $< $(CFLAGS) $(WINFLAGS)
|
|
|
|
clean:
|
|
$(RM) *.exe
|