CC=gcc CFLAGS= -g2 -O0 -march=i386 -mtune=i586 -I../../include -Wall ifeq ($(filter 2 3 4,$(word 3, $(shell true | $(CC) -E -dD -x c - | grep 'define\ *__GNUC__'))),) # We have gcc >= 5.x and we must ensure that always traditional # GNU extern inline semantics are used (aka -fgnu89-inline) even # if ISO C99 semantics have been specified. CFLAGS += -fgnu89-inline endif LIBS= -L../.. -lcrypto /dev/env/DJDIR/net/watt/lib/libwatt.a -lz EXE=.exe EXAMPLES=prime$(EXE) all: $(EXAMPLES) prime$(EXE): prime.o $(CC) -o prime$(EXE) prime.o $(LIBS) clean: rm -f $(EXAMPLES) *.o test: all @echo Test creating a 128-bit prime ./prime 128 @echo Test creating a 256-bit prime ./prime 256 @echo Test creating a 512-bit prime ./prime 512