📄 makefile
字号:
LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \ NETGROUP=-DNETGROUP TLI= SYSTYPE="-sysname bsd43" all# Cray (tested with UNICOS 7.0.4).unicos7: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS=-lnet RANLIB=echo ARFLAGS=rv \ EXTRA_CFLAGS=-DINADDR_NONE="\"((unsigned long) -1)\"" \ AUX_OBJ="setenv.o strcasecmp.o" NETGROUP= TLI= all# Unicos 8.x, Cray-YMP (Bruce Kelly).unicos8: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS= RANLIB=echo AR=bld ARFLAGS=rv \ AUX_OBJ= NETGROUP= TLI= all# Power_UNIX 2.1.1 (amantel@lerc.nasa.gov)power_unix_211: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-lnsl -lsocket -lgen -lresolv" RANLIB=echo ARFLAGS=rv \ NETGROUP= AUX_OBJ=setenv.o TLI=-DTLI BUGS="$(BUGS)" all# ISC (fc@all.net)isc: make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-linet -lnsl_s -ldbm" RANLIB=echo ARFLAGS=rv \ AUX_OBJ="setenv.o strcasecmp.o" EXTRA_CFLAGS="-DENOTCONN=ENAVAIL" \ NETGROUP= TLI= all# Interactive UNIX R3.2 version 4.0 (Bobby D. Wright).iunix: make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-linet -lnsl_s -ldbm" RANLIB=echo ARFLAGS=rv \ AUX_OBJ=environ.o strcasecmp.o NETGROUP= TLI= all# RTU 6.0 on a Masscomp 5400 (ben@piglet.cr.usgs.gov). When using the# advanced installation, increment argv before actually looking at it.rtu: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \ NETGROUP= TLI= all# Unixware sans NIS (mc@telebase.com). Compiler dislikes strcasecmp.c.unixware1: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-lsocket -lnsl -lc -L/usr/ucblib -lucb" RANLIB=echo ARFLAGS=rv \ NETGROUP=$(NETGROUP) AUX_OBJ=environ.o TLI=-DTLI allunixware2: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-lsocket -lnsl -lgen -lc -L/usr/ucblib -lucb" RANLIB=echo \ ARFLAGS=rv NETGROUP=$(NETGROUP) AUX_OBJ=environ.o TLI=-DTLI allu6000: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS="-lsocket -lnsl" RANLIB=echo ARFLAGS=rv \ NETGROUP=-DNETGROUP AUX_OBJ="setenv.o strcasecmp.o" TLI=-DTLI all# MachTenmachten: @make REAL_DAEMON_DIR=$(REAL_DAEMON_DIR) STYLE=$(STYLE) \ LIBS= RANLIB=ranlib ARFLAGS=rv AUX_OBJ=environ.o \ NETGROUP= TLI= all################################################################ System dependencies: TLI (transport-level interface) support.# # Uncomment the following macro if your system has System V.4-style TLI# support (/usr/include/sys/timod.h, /etc/netconfig, and the netdir(3)# routines).##TLI = -DTLI################################################################################ System dependencies: differences between ranlib(1) and ar(1) implementations.## Some C compilers (Ultrix 4.x) insist that ranlib(1) be run on an object# library; some don't care as long as the modules are in the right order;# some systems don't even have a ranlib(1) command. Make your choice.RANLIB = ranlib # have ranlib (BSD-ish UNIX)#RANLIB = echo # no ranlib (SYSV-ish UNIX)ARFLAGS = rv # most systems#ARFLAGS= rvs # IRIX 4.0.xAR = ar#AR = bld # Unicos 8.x############################################################################## System dependencies: routines that are not present in the system libraries.# # If your system library does not have set/putenv() or strcasecmp(), use# the ones provided with this source distribution. The environ.c module# implements setenv(), getenv(), and putenv().AUX_OBJ= setenv.o#AUX_OBJ= environ.o#AUX_OBJ= environ.o strcasecmp.o# Uncomment the following if your C library does not provide the# strchr/strrchr/memcmp routines, but comes with index/rindex/bcmp.##STRINGS= -Dstrchr=index -Dstrrchr=rindex -Dmemcmp=bcmp -Dno_memcpy################################################################## System dependencies: selection of non-default object libraries.## Most System V implementations require that you explicitly specify the# networking libraries. There is no general consensus, though.##LIBS = -lsocket -lnsl # SysV.4 Solaris 2.x#LIBS = -lsun # IRIX#LIBS = -lsocket -linet -lnsl -lnfs # PTX#LIBS = -linet -lnsl_s -ldbm # ISC#LIBS = -lnet # Unicos 7#LIBS = -linet -lsyslog -ldbm#LIBS = -lsyslog -lsocket -lnsl####################################################### System dependencies: system-specific compiler flags.## Apollo Domain/OS offers both bsd and sys5 environments, sometimes# on the same machine. If your Apollo is primarily sys5.3 and also# has bsd4.3, uncomment the following to build under bsd and run under# either environment.##SYSTYPE= -A run,any -A sys,any# For MIPS RISC/os 4_52.p3, uncomment the following definition.##SYSTYPE= -sysname bsd43################################################### System dependencies: working around system bugs.## -DGETPEERNAME_BUG works around a getpeername(2) bug in some versions of# Apollo or SYSV.4 UNIX: the wrapper would report that all UDP requests# come from address 0.0.0.0. The workaround does no harm on other systems.## -DBROKEN_FGETS works around an fgets(3) bug in some System V versions# (IRIX): fgets() gives up too fast when reading from a network socket.# The workaround does no harm on other systems.## Some UNIX systems (IRIX) make the error of calling the strtok() library# routine from other library routines such as, e.g., gethostbyname/addr().# The result is that hosts can slip through the wrapper allow/deny filters.# Compile with -DLIBC_CALLS_STRTOK to avoid the vendor's strtok() routine.# The workaround does no harm on other systems.## DG/UX 5.4.1 comes with an inet_ntoa() function that returns a structure# instead of a long integer. Compile with -DINET_ADDR_BUG to work around# this mutant behavour. Fixed in 5.4R3.## Solaris 2.4 gethostbyname(), in DNS through NIS mode, puts only one# address in the host address list; all other addresses are treated as# host name aliases. Compile with -DSOLARIS_24_GETHOSTBYNAME_BUG to work# around this. The workaround does no harm on other Solaris versions.BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DINET_ADDR_BUG#BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DSOLARIS_24_GETHOSTBYNAME_BUG########################################################################### System dependencies: whether or not your system has NIS (or YP) support.## If your system supports NIS or YP-style netgroups, enable the following# macro definition. Netgroups are used only for host access control.##NETGROUP= -DNETGROUP################################################################ System dependencies: whether or not your system has vsyslog()## If your system supports vsyslog(), comment out the following definition.# If in doubt leave it in, it won't harm.VSYSLOG = -Dvsyslog=myvsyslog# End of the system dependencies.################################################################ Start of the optional stuff.############################################ Optional: Turning on language extensions## Instead of the default access control language that is documented in# the hosts_access.5 document, the wrappers can be configured to# implement an extensible language documented in the hosts_options.5# document. This language is implemented by the "options.c" source# module, which also gives hints on how to add your own extensions.# Uncomment the next definition to turn on the language extensions# (examples: allow, deny, banners, twist and spawn).# #STYLE = -DPROCESS_OPTIONS # Enable language extensions.################################################################# Optional: Changing the default disposition of logfile records## By default, logfile entries are written to the same file as used for# sendmail transaction logs. See your /etc/syslog.conf file for actual# path names of logfiles. The tutorial section in the README file# gives a brief introduction to the syslog daemon.# # Change the FACILITY definition below if you disagree with the default# disposition. Some syslog versions (including Ultrix 4.x) do not provide# this flexibility.# # If nothing shows up on your system, it may be that the syslog records# are sent to a dedicated loghost. It may also be that no syslog daemon# is running at all. The README file gives pointers to surrogate syslog# implementations for systems that have no syslog library routines or# no syslog daemons. When changing the syslog.conf file, remember that# there must be TABs between fields.## The LOG_XXX names below are taken from the /usr/include/syslog.h file.FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use# The syslog priority at which successful connections are logged.SEVERITY= LOG_INFO # LOG_INFO is normally not logged to the console############################ Optional: Reduce DNS load## When looking up the address for a host.domain name, the typical DNS# code will first append substrings of your own domain, so it tries# host.domain.your.own.domain, then host.domain.own.domain, and then# host.domain. The APPEND_DOT feature stops this waste of cycles. It is# off by default because it causes problems on sites that don't use DNS# and with Solaris < 2.4. APPEND_DOT will not work with hostnames taken# from /etc/hosts or from NIS maps. It does work with DNS through NIS.## DOT= -DAPPEND_DOT################################################### Optional: Always attempt remote username lookups## By default, the wrappers look up the remote username only when the# access control rules require them to do so.## Username lookups require that the remote host runs a daemon that# supports an RFC 931 like protocol. Remote user name lookups are not# possible for UDP-based connections, and can cause noticeable delays# with connections from non-UNIX PCs. On some systems, remote username# lookups can trigger a kernel bug, causing loss of service. The README# file describes how to find out if your UNIX kernel has that problem.# # Uncomment the following definition if the wrappers should always# attempt to get the remote user name. If this is not enabled you can# still do selective username lookups as documented in the hosts_access.5# and hosts_options.5 manual pages (`nroff -man' format).##AUTH = -DALWAYS_RFC931## The default username lookup timeout is 10 seconds. This may not be long# enough for slow hosts or networks, but is enough to irritate PC users.RFC931_TIMEOUT = 10####################################################### Optional: Changing the default file protection mask## On many systems, network daemons and other system processes are started# with a zero umask value, so that world-writable files may be produced.# It is a good idea to edit your /etc/rc* files so that they begin with# an explicit umask setting. On our site we use `umask 022' because it# does not break anything yet gives adequate protection against tampering.# # The following macro specifies the default umask for processes run under# control of the daemon wrappers. Comment it out only if you are certain# that inetd and its children are started with a safe umask value.UMASK = -DDAEMON_UMASK=022######################################## Optional: Turning off access control## By default, host access control is enabled. To disable host access# control, comment out the following definition. Host access control# can also be turned off at runtime by providing no or empty access# control tables.ACCESS = -DHOSTS_ACCESS######################################################### Optional: Changing the access control table pathnames## The HOSTS_ALLOW and HOSTS_DENY macros define where the programs will# look for access control information. Watch out for the quotes and# backslashes when you make changes.TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -