Makefile (2aef693010b252e8cff0ce46a6ebf15b74c82219) Makefile (8053080cbc1ee98871dd7549fef2a6d80f99a00a)
1# @(#) Makefile 1.23 97/03/21 19:27:20
1# @(#) Makefile 1.23 97/03/21 19:27:20
2# $FreeBSD$
2
3what:
4 @echo
5 @echo "Usage: edit the REAL_DAEMON_DIR definition in the Makefile then:"
6 @echo
7 @echo " make sys-type"
8 @echo
9 @echo "If you are in a hurry you can try instead:"

--- 6 unchanged lines hidden (view full) ---

16 @echo
17 @echo "This Makefile knows about the following sys-types:"
18 @echo
19 @echo " generic (most bsd-ish systems with sys5 compatibility)"
20 @echo " 386bsd aix alpha apollo bsdos convex-ultranet dell-gcc dgux dgux543"
21 @echo " dynix epix esix freebsd hpux irix4 irix5 irix6 isc iunix"
22 @echo " linux machten mips(untested) ncrsvr4 netbsd next osf power_unix_211"
23 @echo " ptx-2.x ptx-generic pyramid sco sco-nis sco-od2 sco-os5 sinix sunos4"
3
4what:
5 @echo
6 @echo "Usage: edit the REAL_DAEMON_DIR definition in the Makefile then:"
7 @echo
8 @echo " make sys-type"
9 @echo
10 @echo "If you are in a hurry you can try instead:"

--- 6 unchanged lines hidden (view full) ---

17 @echo
18 @echo "This Makefile knows about the following sys-types:"
19 @echo
20 @echo " generic (most bsd-ish systems with sys5 compatibility)"
21 @echo " 386bsd aix alpha apollo bsdos convex-ultranet dell-gcc dgux dgux543"
22 @echo " dynix epix esix freebsd hpux irix4 irix5 irix6 isc iunix"
23 @echo " linux machten mips(untested) ncrsvr4 netbsd next osf power_unix_211"
24 @echo " ptx-2.x ptx-generic pyramid sco sco-nis sco-od2 sco-os5 sinix sunos4"
24 @echo " sunos40 sunos5 sysv4 tandem ultrix unicos7 unicos8 unixware1 unixware2"
25 @echo " sunos40 sunos5 solaris8 sysv4 tandem ultrix unicos7 unicos8 unixware1 unixware2"
25 @echo " uts215 uxp"
26 @echo
27 @echo "If none of these match your environment, edit the system"
28 @echo "dependencies sections in the Makefile and do a 'make other'."
29 @echo
30
31#######################################################
32# Choice between easy and advanced installation recipe.

--- 93 unchanged lines hidden (view full) ---

126
127# This works on EP/IX 1.4.3 and will likely work on Mips (reggers@julian.uwo.ca)
128epix:
129 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
130 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
131 NETGROUP=-DNETGROUP TLI= SYSTYPE="-systype bsd43" all
132
133# Freebsd and linux by default have no NIS.
26 @echo " uts215 uxp"
27 @echo
28 @echo "If none of these match your environment, edit the system"
29 @echo "dependencies sections in the Makefile and do a 'make other'."
30 @echo
31
32#######################################################
33# Choice between easy and advanced installation recipe.

--- 93 unchanged lines hidden (view full) ---

127
128# This works on EP/IX 1.4.3 and will likely work on Mips (reggers@julian.uwo.ca)
129epix:
130 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
131 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \
132 NETGROUP=-DNETGROUP TLI= SYSTYPE="-systype bsd43" all
133
134# Freebsd and linux by default have no NIS.
134386bsd netbsd bsdos:
135386bsd bsdos:
135 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
136 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
137 EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
138
139freebsd:
140 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
136 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
137 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
138 EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
139
140freebsd:
141 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
142 RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP=-DNETGROUP TLI= \
143 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DINET6 -DUSE_GETIPNODEBY" \
144 VSYSLOG= all
145
146netbsd:
147 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
141 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
148 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ= NETGROUP= TLI= \
142 EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED VSYSLOG= all
149 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DINET6 \
150 -Dss_family=__ss_family -Dss_len=__ss_len" VSYSLOG= all
143
144linux:
145 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
151
152linux:
153 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
146 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=setenv.o \
147 NETGROUP= TLI= EXTRA_CFLAGS="-DBROKEN_SO_LINGER" all
154 LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=setenv.o NETGROUP= TLI= \
155 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DBROKEN_SO_LINGER -DINET6=1 \
156 -Dss_family=__ss_family -Dss_len=__ss_len" all
148
157
158linux-old:
159 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
160 LIBS="/usr/inet6/lib/libinet6.a -lresolv" \
161 RANLIB=ranlib ARFLAGS=rv AUX_OBJ=setenv.o NETGROUP= TLI= \
162 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DBROKEN_SO_LINGER -DINET6=1 -Dss_family=sin6_family -Dsockaddr_storage=sockaddr_in6 -I/usr/inet6/include" all
163
149# This is good for many SYSV+BSD hybrids with NIS, probably also for HP-UX 7.x.
150hpux hpux8 hpux9 hpux10:
151 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
152 LIBS= RANLIB=echo ARFLAGS=rv AUX_OBJ=setenv.o \
153 NETGROUP=-DNETGROUP TLI= all
154
155# ConvexOS-10.x with UltraNet support (ukkonen@csc.fi).
156convex-ultranet:

--- 34 unchanged lines hidden (view full) ---

191
192# SunOS 5.x is another SYSV4 variant.
193sunos5:
194 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
195 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv VSYSLOG= \
196 NETGROUP=-DNETGROUP AUX_OBJ=setenv.o TLI=-DTLI \
197 BUGS="$(BUGS) -DSOLARIS_24_GETHOSTBYNAME_BUG" all
198
164# This is good for many SYSV+BSD hybrids with NIS, probably also for HP-UX 7.x.
165hpux hpux8 hpux9 hpux10:
166 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
167 LIBS= RANLIB=echo ARFLAGS=rv AUX_OBJ=setenv.o \
168 NETGROUP=-DNETGROUP TLI= all
169
170# ConvexOS-10.x with UltraNet support (ukkonen@csc.fi).
171convex-ultranet:

--- 34 unchanged lines hidden (view full) ---

206
207# SunOS 5.x is another SYSV4 variant.
208sunos5:
209 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
210 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv VSYSLOG= \
211 NETGROUP=-DNETGROUP AUX_OBJ=setenv.o TLI=-DTLI \
212 BUGS="$(BUGS) -DSOLARIS_24_GETHOSTBYNAME_BUG" all
213
214# SunOS 5.8 is another SYSV4 variant, but has IPv6 support
215solaris8:
216 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
217 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv VSYSLOG= \
218 NETGROUP=-DNETGROUP AUX_OBJ=setenv.o TLI=-DTLI \
219 EXTRA_CFLAGS="-DINET6 -DUSE_GETIPNODEBY -DNO_CLONE_DEVICE \
220 -DINT32_T" all
221
199# Generic SYSV40
200esix sysv4:
201 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
202 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \
203 NETGROUP=-DNETGROUP AUX_OBJ=setenv.o TLI=-DTLI all
204
205# DG/UX 5.4.1 and 5.4.2 have an unusual inet_addr() interface.
206dgux:

--- 17 unchanged lines hidden (view full) ---

224# Tandem SYSV4 (eqawas@hedgehog.ac.cowan.edu.au)
225tandem:
226 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
227 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \
228 NETGROUP= AUX_OBJ="setenv.o strcasecmp.o" TLI=-DTLI all
229
230# Amdahl UTS 2.1.5 (Richard.Richmond@bridge.bst.bls.com)
231uts215:
222# Generic SYSV40
223esix sysv4:
224 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
225 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \
226 NETGROUP=-DNETGROUP AUX_OBJ=setenv.o TLI=-DTLI all
227
228# DG/UX 5.4.1 and 5.4.2 have an unusual inet_addr() interface.
229dgux:

--- 17 unchanged lines hidden (view full) ---

247# Tandem SYSV4 (eqawas@hedgehog.ac.cowan.edu.au)
248tandem:
249 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
250 LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \
251 NETGROUP= AUX_OBJ="setenv.o strcasecmp.o" TLI=-DTLI all
252
253# Amdahl UTS 2.1.5 (Richard.Richmond@bridge.bst.bls.com)
254uts215:
232 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
255 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
233 LIBS="-lsocket" RANLIB=echo \
234 ARFLAGS=rv AUX_OBJ=setenv.o NETGROUP=-DNO_NETGROUP TLI= all
235
236# UXP/DS System V.4 clone (vic@uida0.uida.es).
237uxp:
238 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
239 LIBS="-L/usr/ucblib -lsocket -lnsl -lucb" \
240 RANLIB=echo ARFLAGS=rv NETGROUP=-DNETGROUP \

--- 145 unchanged lines hidden (view full) ---

386
387#############################################################################
388# System dependencies: routines that are not present in the system libraries.
389#
390# If your system library does not have set/putenv() or strcasecmp(), use
391# the ones provided with this source distribution. The environ.c module
392# implements setenv(), getenv(), and putenv().
393
256 LIBS="-lsocket" RANLIB=echo \
257 ARFLAGS=rv AUX_OBJ=setenv.o NETGROUP=-DNO_NETGROUP TLI= all
258
259# UXP/DS System V.4 clone (vic@uida0.uida.es).
260uxp:
261 @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \
262 LIBS="-L/usr/ucblib -lsocket -lnsl -lucb" \
263 RANLIB=echo ARFLAGS=rv NETGROUP=-DNETGROUP \

--- 145 unchanged lines hidden (view full) ---

409
410#############################################################################
411# System dependencies: routines that are not present in the system libraries.
412#
413# If your system library does not have set/putenv() or strcasecmp(), use
414# the ones provided with this source distribution. The environ.c module
415# implements setenv(), getenv(), and putenv().
416
394AUX_OBJ= setenv.o
417#AUX_OBJ= setenv.o
395#AUX_OBJ= environ.o
396#AUX_OBJ= environ.o strcasecmp.o
397
398# Uncomment the following if your C library does not provide the
399# strchr/strrchr/memcmp routines, but comes with index/rindex/bcmp.
400#
401#STRINGS= -Dstrchr=index -Dstrrchr=rindex -Dmemcmp=bcmp -Dno_memcpy
402

--- 46 unchanged lines hidden (view full) ---

449# instead of a long integer. Compile with -DINET_ADDR_BUG to work around
450# this mutant behavour. Fixed in 5.4R3.
451#
452# Solaris 2.4 gethostbyname(), in DNS through NIS mode, puts only one
453# address in the host address list; all other addresses are treated as
454# host name aliases. Compile with -DSOLARIS_24_GETHOSTBYNAME_BUG to work
455# around this. The workaround does no harm on other Solaris versions.
456
418#AUX_OBJ= environ.o
419#AUX_OBJ= environ.o strcasecmp.o
420
421# Uncomment the following if your C library does not provide the
422# strchr/strrchr/memcmp routines, but comes with index/rindex/bcmp.
423#
424#STRINGS= -Dstrchr=index -Dstrrchr=rindex -Dmemcmp=bcmp -Dno_memcpy
425

--- 46 unchanged lines hidden (view full) ---

472# instead of a long integer. Compile with -DINET_ADDR_BUG to work around
473# this mutant behavour. Fixed in 5.4R3.
474#
475# Solaris 2.4 gethostbyname(), in DNS through NIS mode, puts only one
476# address in the host address list; all other addresses are treated as
477# host name aliases. Compile with -DSOLARIS_24_GETHOSTBYNAME_BUG to work
478# around this. The workaround does no harm on other Solaris versions.
479
457BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
480#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
458#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
459#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG
460
461##########################################################################
462# System dependencies: whether or not your system has NIS (or YP) support.
463#
464# If your system supports NIS or YP-style netgroups, enable the following
465# macro definition. Netgroups are used only for host access control.
466#
467#NETGROUP= -DNETGROUP
468
469###############################################################
470# System dependencies: whether or not your system has vsyslog()
471#
472# If your system supports vsyslog(), comment out the following definition.
473# If in doubt leave it in, it won't harm.
474
481#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG
482#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG
483
484##########################################################################
485# System dependencies: whether or not your system has NIS (or YP) support.
486#
487# If your system supports NIS or YP-style netgroups, enable the following
488# macro definition. Netgroups are used only for host access control.
489#
490#NETGROUP= -DNETGROUP
491
492###############################################################
493# System dependencies: whether or not your system has vsyslog()
494#
495# If your system supports vsyslog(), comment out the following definition.
496# If in doubt leave it in, it won't harm.
497
475VSYSLOG = -Dvsyslog=myvsyslog
498#VSYSLOG = -Dvsyslog=myvsyslog
476
477# End of the system dependencies.
478#################################
479
480##############################
481# Start of the optional stuff.
482
483###########################################

--- 406 unchanged lines hidden ---
499
500# End of the system dependencies.
501#################################
502
503##############################
504# Start of the optional stuff.
505
506###########################################

--- 406 unchanged lines hidden ---