mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-29 04:04:29 +00:00
Added USE_CRYPT
SVN revision: 2181
This commit is contained in:
parent
eccb23b8db
commit
98115c1a8c
9
Makefile
9
Makefile
@ -24,10 +24,12 @@ RCDIR = $(ROOT)/etc/rc.d/init.d
|
|||||||
# flag for SSL support
|
# flag for SSL support
|
||||||
USE_SSL = 1
|
USE_SSL = 1
|
||||||
|
|
||||||
|
# flag for crypt() support
|
||||||
|
USE_CRYPT =
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# Default compilation flags unless stated otherwise.
|
# 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 += -O3 -funroll-loops -fomit-frame-pointer -W -Wall
|
||||||
CFLAGS += -g -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
|
LIBS += -lssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef USE_CRYPT
|
||||||
|
CFLAGS += -DHAVE_CRYPT
|
||||||
|
LIBS += -lcrypt
|
||||||
|
endif
|
||||||
|
|
||||||
WHOAMI = $(shell whoami)
|
WHOAMI = $(shell whoami)
|
||||||
ifeq ($(WHOAMI),root)
|
ifeq ($(WHOAMI),root)
|
||||||
BINFLAGS = -o ${BINOWNER} -g ${BINGROUP}
|
BINFLAGS = -o ${BINOWNER} -g ${BINGROUP}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user