CFLAGS=-I../../include -Wall -g2 -O0 -march=i386 -mtune=i586 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 EXE=.exe all: state_machine$(EXE) state_machine$(EXE): state_machine.o $(CC) -o state_machine$(EXE) state_machine.o -L../.. -lssl -lcrypto test: state_machine$(EXE) ./state_machine$(EXE) 10000 ../../apps/server.pem ../../apps/server.pem