Added USE_CRYPT

SVN revision: 2181
This commit is contained in:
Stefan Ritt 2009-03-24 10:15:06 +00:00
parent eccb23b8db
commit 98115c1a8c

View File

@ -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}