2
sockd_SOURCES = sockd.c sockd_child.c io.c sockd_negotiate.c \
3
sockd_request.c method_uname.c debug.c udp_util.c util.c log.c \
4
socket.c sockd_socket.c config_parse.y config_scan.l config.c \
5
sockd_util.c sockd_protocol.c serverconfig.c lib_protocol.c \
6
hostcache.c interposition.c broken.c serr.c sockd_io.c accesscheck.c \
7
auth_password.c auth_pam.c tostring.c redirect.c redirect_key.c \
8
addressmatch.c checkmodule.c bandwidth.c bandwidth_key.c getifa.c
10
noinst_HEADERS = config_parse.h
11
MAINTAINERCLEANFILES = config_parse.h config_parse.c config_scan.c
13
#use libwrap if it is available
17
#use preloading for libwrap if enabled and possible
18
if SERVER_INTERPOSITION
19
SERVDL = -DSOCKSLIBRARY_DYNAMIC=1
20
endif #SERVER_INTERPOSITION
24
#use preloading anyway?
25
if SERVER_INTERPOSITION_ALWAYS
26
SERVDL = -DSOCKSLIBRARY_DYNAMIC=1
27
endif #SERVER_INTERPOSITION_ALWAYS
33
sockd_LDADD = ../libscompat/sockatmark.o ${LIBWRAP}
35
sockd_LDADD = ../libscompat/libscompat.la ${LIBWRAP}
38
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/libscompat
40
YFLAGS = -d -p${PREFIX}
41
LFLAGS = -P${PREFIX} -olex.yy.c
48
PROFIL = -pg -DPROFILING
49
#XXX some systems do not appear to need this
50
sockd_LDFLAGS = ${STATIC}
56
AM_CFLAGS = ${PROFIL} -DSOCKS_SERVER=1 -DSOCKS_CLIENT=0 ${SERVDL}
60
LINTFILES = sockd.ln sockd_child.ln sockd_io.ln io.ln udp_util.ln \
61
sockd_request.ln method_uname.ln debug.ln util.ln socket.ln \
62
log.ln sockd_socket.ln config_parse.ln config_scan.ln \
63
sockd_util.ln sockd_protocol.ln serverconfig.ln lib_protocol.ln \
64
sockd_negotiate.ln config.ln interposition.ln
66
sockd_DEPENDENCIES= $(LINTFILES)
68
CLEANFILES=$(LINTFILES)
74
$(LINT) $(LINTFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS) $<