Makefile (24da5b34f49324ed742a340010ed5bd3d4e06625) | Makefile (f998c95e3b7029fe5f7542e115f7474ddb8024d7) |
---|---|
1# | 1# |
2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2007 Sun Microsystems, Inc. All rights reserved. | 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29PROG = safe_finger tcpd tcpdchk tcpdmatch try-from 30 31include ../Makefile.cmd 32 33ERROFF = -erroff=E_FUNC_HAS_NO_RETURN_STMT \ 34 -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT \ 35 -_gcc=-Wno-return-type -_gcc=-Wno-implicit 36CFLAGS += $(CCVERBOSE) $(ERROFF) 37CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \ 38 $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \ 39 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ 40 -DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \ 41 -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ | 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7 8PROG = safe_finger tcpd tcpdchk tcpdmatch try-from 9 10include ../Makefile.cmd 11 12ERROFF = -erroff=E_FUNC_HAS_NO_RETURN_STMT \ 13 -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT \ 14 -_gcc=-Wno-return-type -_gcc=-Wno-implicit 15CFLAGS += $(CCVERBOSE) $(ERROFF) 16CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \ 17 $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \ 18 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \ 19 -DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \ 20 -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ |
42 -I$(ROOTSFWINCLUDE) -I../../lib/libwrap | 21 -I../../lib/libwrap |
43tcpd tcpdmatch try-from := \ | 22tcpd tcpdmatch try-from := \ |
44 LDLIBS += -R$(SFW_ROOT)/lib -L$(ROOTSFWLIB) -lwrap | 23 LDLIBS += -lwrap |
45tcpdchk := \ | 24tcpdchk := \ |
46 LDLIBS += -R$(SFW_ROOT)/lib -L$(ROOTSFWLIB) -lwrap -lnsl | 25 LDLIBS += -lwrap -lnsl |
47 48# Various components must export interfaces, but also contain name-space 49# clashes with system libraries. 50MAPFILE.INT.D = $(MAPFILE.NGB) mapfile-intf-tcpdchk 51MAPFILE.INT.M = $(MAPFILE.NGB) mapfile-intf-tcpdmatch 52MAPFILE.INT.F = $(MAPFILE.NGB) mapfile-intf-tryfrom 53 54tcpdchk := LDFLAGS +=$(MAPFILE.INT.D:%=-M%) --- 15 unchanged lines hidden (view full) --- 70MANPAGES = man3/hosts_access.3 man3/libwrap.3 man4/hosts_access.4 \ 71 man4/hosts_options.4 man4/hosts.allow.4 man4/hosts.deny.4 \ 72 man1m/tcpd.1m man1m/tcpdchk.1m man1m/tcpdmatch.1m 73DISTFILES = environ.c fakelog.c hosts_access.3 hosts_access.4 \ 74 hosts_options.4 inetcf.c inetcf.h safe_finger.c scaffold.c \ 75 scaffold.h tcpd.1m tcpd.c tcpdchk.1m tcpdchk.c tcpdmatch.1m \ 76 tcpdmatch.c try-from.c README.sfw $(SRCONLY) 77 | 26 27# Various components must export interfaces, but also contain name-space 28# clashes with system libraries. 29MAPFILE.INT.D = $(MAPFILE.NGB) mapfile-intf-tcpdchk 30MAPFILE.INT.M = $(MAPFILE.NGB) mapfile-intf-tcpdmatch 31MAPFILE.INT.F = $(MAPFILE.NGB) mapfile-intf-tryfrom 32 33tcpdchk := LDFLAGS +=$(MAPFILE.INT.D:%=-M%) --- 15 unchanged lines hidden (view full) --- 49MANPAGES = man3/hosts_access.3 man3/libwrap.3 man4/hosts_access.4 \ 50 man4/hosts_options.4 man4/hosts.allow.4 man4/hosts.deny.4 \ 51 man1m/tcpd.1m man1m/tcpdchk.1m man1m/tcpdmatch.1m 52DISTFILES = environ.c fakelog.c hosts_access.3 hosts_access.4 \ 53 hosts_options.4 inetcf.c inetcf.h safe_finger.c scaffold.c \ 54 scaffold.h tcpd.1m tcpd.c tcpdchk.1m tcpdchk.c tcpdmatch.1m \ 55 tcpdmatch.c try-from.c README.sfw $(SRCONLY) 56 |
78ROOTSFWSRC = $(ROOTSFWSHSRC)/tcp_wrappers 79ROOTSFWSBINPROG = $(PROG:%=$(ROOTSFWSBIN)/%) 80ROOTSFWMANPAGES = $(MANPAGES:%=$(ROOTSFWMAN)/%) 81ROOTSFWMANDIRS = $(MANDIRS:%=$(ROOTSFWMAN)/%) 82ROOTSFWSRCFILES = $(DISTFILES:%=$(ROOTSFWSRC)/%) | 57ROOTSRC = $(ROOT)/usr/share/src/tcp_wrappers 58$(ROOTSRC) := OWNER = root 59$(ROOTSRC) := GROUP = bin 60ROOTMAN = $(ROOT)/usr/share/man 61ROOTMANPAGES = $(MANPAGES:%=$(ROOTMAN)/%) 62ROOTMANDIRS = $(MANDIRS:%=$(ROOTMAN)/%) 63ROOTSRCFILES = $(DISTFILES:%=$(ROOTSRC)/%) |
83 84.KEEP_STATE: 85 86all: $(PROG) THIRDPARTYLICENSE 87 | 64 65.KEEP_STATE: 66 67all: $(PROG) THIRDPARTYLICENSE 68 |
88install: all $(ROOTSFWSBINPROG) $(ROOTSFWMANPAGES) $(ROOTSFWSRCFILES) | 69install: all $(ROOTUSRSBINPROG) $(ROOTMANPAGES) $(ROOTSRCFILES) |
89 90clean: 91 $(RM) *.o 92 $(RM) -r sunman 93 94lint: lint_PROG 95 | 70 71clean: 72 $(RM) *.o 73 $(RM) -r sunman 74 75lint: lint_PROG 76 |
96$(ROOTSFWSBINPROG): $(ROOTSFWSBIN) 97$(ROOTSFWSBIN): $(ROOTSFW) 98 $(INS.dir) 99$(ROOTSFWSBIN)/% : % 100 $(INS.file) 101 | |
102# These Solaris-specific man page aliases are installed verbatim. 103sunman/libwrap.3: libwrap.3 104 mkdir -p sunman; cat libwrap.3 > $@ 105sunman/hosts.allow.4: hosts.allow.4 106 mkdir -p sunman; cat hosts.allow.4 > $@ 107sunman/hosts.deny.4: hosts.deny.4 108 mkdir -p sunman; cat hosts.deny.4 > $@ 109 110# The rest of the man pages are in the form provided in the original 111# distribution, but get edited and renamed to follow Solaris man page | 77# These Solaris-specific man page aliases are installed verbatim. 78sunman/libwrap.3: libwrap.3 79 mkdir -p sunman; cat libwrap.3 > $@ 80sunman/hosts.allow.4: hosts.allow.4 81 mkdir -p sunman; cat hosts.allow.4 > $@ 82sunman/hosts.deny.4: hosts.deny.4 83 mkdir -p sunman; cat hosts.deny.4 > $@ 84 85# The rest of the man pages are in the form provided in the original 86# distribution, but get edited and renamed to follow Solaris man page |
112# conventions. E.g. tcpd.8 gets installed as /usr/sfw/man/man1m/tcpd.1m. | 87# conventions. E.g. tcpd.8 gets installed as /usr/share/man/man1m/tcpd.1m. |
113# Create temporary copies in the sunman directory with modified names 114# and contents. The sed program man.sed contains the content edits. 115 116sunman/%.1m: %.8 117 mkdir -p sunman; sed -f man.sed < $< > $@ 118sunman/%.4: %.5 119 mkdir -p sunman; sed -f man.sed < $< > $@ 120sunman/%.3: %.3 121 mkdir -p sunman; sed -f man.sed < $< > $@ 122 | 88# Create temporary copies in the sunman directory with modified names 89# and contents. The sed program man.sed contains the content edits. 90 91sunman/%.1m: %.8 92 mkdir -p sunman; sed -f man.sed < $< > $@ 93sunman/%.4: %.5 94 mkdir -p sunman; sed -f man.sed < $< > $@ 95sunman/%.3: %.3 96 mkdir -p sunman; sed -f man.sed < $< > $@ 97 |
123$(ROOTSFWMANPAGES) := FILEMODE = 0444 124$(ROOTSFWMANPAGES): $(ROOTSFWMANDIRS) $(ROOTSFW)/man 125$(ROOTSFWMANDIRS): $(ROOTSFWMAN) | 98$(ROOTMANPAGES) := FILEMODE = 0444 99$(ROOTMANPAGES): $(ROOTMANDIRS) $(ROOT)/usr/share/man 100$(ROOTMANDIRS): $(ROOTMAN) |
126 $(INS.dir) | 101 $(INS.dir) |
127$(ROOTSFWMAN): $(ROOTSFW)/share | 102$(ROOTMAN): |
128 $(INS.dir) | 103 $(INS.dir) |
129$(ROOTSFW)/man: $(ROOTSFW) 130 $(RM) $@ 131 $(SYMLINK) share/man $@ $(CHOWNLINK) $(CHGRPLINK) 132$(ROOTSFWMAN)/man1m/% $(ROOTSFWMAN)/man3/% $(ROOTSFWMAN)/man4/%: sunman/% | 104$(ROOTMAN1M)/% $(ROOTMAN3)/% $(ROOTMAN)/man4/%: sunman/% |
133 $(INS.file) 134 | 105 $(INS.file) 106 |
135$(ROOTSFWSRCFILES) := FILEMODE = 0444 136$(ROOTSFWSRCFILES): $(ROOTSFWSRC) 137$(ROOTSFWSRC): $(ROOTSFWSHSRC) | 107$(ROOTSRCFILES) := FILEMODE = 0444 108$(ROOTSRCFILES): $(ROOTSRC) 109$(ROOTSRC): |
138 $(INS.dir) | 110 $(INS.dir) |
139$(ROOTSFWSHSRC): $(ROOTSFW)/share 140 $(INS.dir) 141$(ROOTSFWSRC)/%: %.sfwsrc | 111$(ROOTSRC)/%: %.sfwsrc |
142 $(INS.rename) | 112 $(INS.rename) |
143$(ROOTSFWSRC)/%: sunman/% | 113$(ROOTSRC)/%: sunman/% |
144 $(INS.file) | 114 $(INS.file) |
145$(ROOTSFWSRC)/%: % | 115$(ROOTSRC)/%: % |
146 $(INS.file) 147 | 116 $(INS.file) 117 |
148$(ROOTSFW)/share: $(ROOTSFW) | 118$(ROOT)/usr/share: $(ROOT)/usr |
149 $(INS.dir) | 119 $(INS.dir) |
150$(ROOTSFW): | 120$(ROOT)/usr: $(ROOT) |
151 $(INS.dir) 152 153TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o 154 155tcpdmatch: $(TCPDMATCH_OBJ) $(LIB) $(MAPFILE.INTF.M) 156 $(LINK.c) -o $@ $(TCPDMATCH_OBJ) $(LDLIBS) 157 $(POST_PROCESS) 158 --- 157 unchanged lines hidden --- | 121 $(INS.dir) 122 123TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o 124 125tcpdmatch: $(TCPDMATCH_OBJ) $(LIB) $(MAPFILE.INTF.M) 126 $(LINK.c) -o $@ $(TCPDMATCH_OBJ) $(LDLIBS) 127 $(POST_PROCESS) 128 --- 157 unchanged lines hidden --- |