~ubuntu-branches/ubuntu/trusty/dante/trusty-proposed

« back to all changes in this revision

Viewing changes to sockd/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2002-04-07 12:45:55 UTC
  • Revision ID: james.westby@ubuntu.com-20020407124555-qke8rt2tdor0naz2
Tags: upstream-1.1.11.12p1
ImportĀ upstreamĀ versionĀ 1.1.11.12p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
sbin_PROGRAMS = sockd
 
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
 
9
 
 
10
noinst_HEADERS = config_parse.h
 
11
MAINTAINERCLEANFILES = config_parse.h config_parse.c config_scan.c
 
12
 
 
13
#use libwrap if it is available
 
14
if WANT_LIBWRAP
 
15
LIBWRAP=-lwrap
 
16
 
 
17
#use preloading for libwrap if enabled and possible
 
18
if SERVER_INTERPOSITION
 
19
SERVDL = -DSOCKSLIBRARY_DYNAMIC=1
 
20
endif #SERVER_INTERPOSITION
 
21
 
 
22
else #WANT_LIBWRAP
 
23
 
 
24
#use preloading anyway?
 
25
if SERVER_INTERPOSITION_ALWAYS
 
26
SERVDL = -DSOCKSLIBRARY_DYNAMIC=1
 
27
endif #SERVER_INTERPOSITION_ALWAYS
 
28
 
 
29
endif #WANT_LIBWRAP
 
30
 
 
31
#XXXhack
 
32
if STATIC_SOCKD
 
33
sockd_LDADD = ../libscompat/sockatmark.o ${LIBWRAP}
 
34
else
 
35
sockd_LDADD = ../libscompat/libscompat.la ${LIBWRAP}
 
36
endif
 
37
 
 
38
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/libscompat
 
39
PREFIX = socks_yy
 
40
YFLAGS = -d -p${PREFIX}
 
41
LFLAGS = -P${PREFIX} -olex.yy.c
 
42
 
 
43
if STATIC_SOCKD
 
44
STATIC = -all-static
 
45
endif
 
46
 
 
47
if SPROFIL
 
48
PROFIL = -pg -DPROFILING
 
49
#XXX some systems do not appear to need this
 
50
sockd_LDFLAGS = ${STATIC}
 
51
else
 
52
PROFIL =
 
53
endif
 
54
 
 
55
#XXX
 
56
AM_CFLAGS = ${PROFIL} -DSOCKS_SERVER=1 -DSOCKS_CLIENT=0 ${SERVDL}
 
57
#lint files
 
58
SUFFIXES=.ln
 
59
if LINT
 
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
 
65
 
 
66
sockd_DEPENDENCIES= $(LINTFILES)
 
67
 
 
68
CLEANFILES=$(LINTFILES)
 
69
 
 
70
LINT=lint
 
71
LINTFLAGS=-abcebiprxz
 
72
 
 
73
.c.ln:
 
74
        $(LINT) $(LINTFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS) $<
 
75
endif