Updated Makefiles based on feedback from Rune Magnussen <rum@bankdata.dk>
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
all: infnoise infnoise-v1 passgen
|
||||
CFLAGS = -Wall -std=c99 -O3 -I Keccak
|
||||
|
||||
all: infnoise
|
||||
|
||||
infnoise: infnoise.c infnoise.h healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c Keccak/brg_endian.h
|
||||
gcc -Wall -std=c99 -O3 -I Keccak -o infnoise infnoise.c healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c -lftdi -lm -lrt
|
||||
|
||||
infnoise-v1: infnoise.c infnoise.h healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c Keccak/brg_endian.h
|
||||
gcc -Wall -std=c99 -O3 -DVERSION1 -I Keccak -o infnoise-v1 infnoise.c healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c -lftdi -lm -lrt
|
||||
|
||||
passgen: passgen.c
|
||||
gcc -Wall -std=c99 -O3 -o passgen passgen.c -lm
|
||||
$(CC) $(CFLAGS) -o infnoise infnoise.c healthcheck.c writeentropy.c Keccak/KeccakF-1600-reference.c -lftdi -lm -lrt
|
||||
|
||||
clean:
|
||||
rm -f infnoise infnoise-v1
|
||||
$(RM) -f infnoise
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <ftdi.h>
|
||||
|
||||
@@ -1,25 +1,30 @@
|
||||
all: healthcheck findlongest entcheck hex2bin bin2hex flipbits dice
|
||||
CFLAGS=-Wall -std=c99 -O3
|
||||
|
||||
all: passgen healthcheck findlongest entcheck hex2bin bin2hex flipbits dice
|
||||
|
||||
passgen: passgen.c
|
||||
$(CC) $(CFLAGS) -o passgen passgen.c -lm
|
||||
|
||||
healthcheck: ../healthcheck.c
|
||||
gcc -Wall -std=c99 -O3 -D TEST_HEALTHCHECK -o healthcheck ../healthcheck.c -lm -lrt
|
||||
$(CC) $(CFLAGS) -D TEST_HEALTHCHECK -o healthcheck ../healthcheck.c -lm -lrt
|
||||
|
||||
entcheck: entcheck.c
|
||||
gcc -Wall -std=c99 -O3 -o entcheck entcheck.c -lm -lrt
|
||||
$(CC) $(CFLAGS) -o entcheck entcheck.c -lm -lrt
|
||||
|
||||
findlongest: findlongest.c
|
||||
gcc -Wall -std=c99 -O3 -o findlongest findlongest.c
|
||||
$(CC) $(CFLAGS) -o findlongest findlongest.c
|
||||
|
||||
hex2bin: hex2bin.c
|
||||
gcc -Wall -std=c99 -O3 -o hex2bin hex2bin.c
|
||||
$(CC) $(CFLAGS) -o hex2bin hex2bin.c
|
||||
|
||||
bin2hex: bin2hex.c
|
||||
gcc -Wall -std=c99 -O3 -o bin2hex bin2hex.c
|
||||
$(CC) $(CFLAGS) -o bin2hex bin2hex.c
|
||||
|
||||
flipbits: flipbits.c
|
||||
gcc -Wall -std=c99 -O3 -o flipbits flipbits.c
|
||||
$(CC) $(CFLAGS) -o flipbits flipbits.c
|
||||
|
||||
dice: dice.c
|
||||
gcc -Wall -std=c99 -O3 -o dice dice.c
|
||||
$(CC) $(CFLAGS) -o dice dice.c
|
||||
|
||||
clean:
|
||||
rm -f healthcheck findlongest entcheck hex2bin bin2hex flipbits dice
|
||||
$(RM) -f passgen healthcheck findlongest entcheck hex2bin bin2hex flipbits dice
|
||||
|
||||
Reference in New Issue
Block a user