1# By default, the code is compiled for a "big endian" machine. 2# To compile on a "little endian" machine set the LITTLE_ENDIAN flag. 3# To make smaller object code, but run a little slower, don't use UNROLL_LOOPS. 4# To use NIST's modified SHA of 7/11/94, define USE_MODIFIED_SHA 5 6CC = gcc 7CFLAGS = -O2 -ansi -Wall -pedantic -DUNROLL_LOOPS -DLITTLE_ENDIAN # -DUSE_MODIFIED_SHA 8 9all: sha 10 11sha: sha_driver.o sha.o 12 $(CC) -o $@ sha_driver.o sha.o 13 strip $@ 14 15test: sha appgen 16 appgen 1 | sha 17 appgen 2 | sha 18 appgen 3 | sha 19 @echo "Values should be:" 20 @cat sha.good.outputs 21 @echo "except if you defined USE_MODIFIED_SHA!" 22 @echo "I have no known-good comparisons for that case!" 23 24clean: 25 rm *.o sha appgen 26