diff --git a/Makefile b/Makefile index 48a76f71..930de355 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,12 @@ RCDIR = $(ROOT)/etc/rc.d/init.d # flag for SSL support USE_SSL = 1 +# flag for crypt() support +USE_CRYPT = + ############################################################# # Default compilation flags unless stated otherwise. -# Add "-DHAVE_CRYPT" and "-lcrypt" to use crypt() function. #CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall CFLAGS += -g -funroll-loops -fomit-frame-pointer -W -Wall @@ -76,6 +78,11 @@ CFLAGS += -DHAVE_SSL LIBS += -lssl endif +ifdef USE_CRYPT +CFLAGS += -DHAVE_CRYPT +LIBS += -lcrypt +endif + WHOAMI = $(shell whoami) ifeq ($(WHOAMI),root) BINFLAGS = -o ${BINOWNER} -g ${BINGROUP}