Makefile.com (f808c858fa61e7769218966759510a8b1190dfcf) Makefile.com (f998c95e3b7029fe5f7542e115f7474ddb8024d7)
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

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

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#
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

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

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# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
21# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23# Use is subject to license terms.
24#
25# ident "%Z%%M% %I% %E% SMI"
26#
27
28LIBRARY = libwrap.a
29MAJOR = .1
30MINOR = .0
31VERS = $(MAJOR)$(MINOR)
32OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
33 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
34 fromhost.o fix_options.o socket.o tli.o workarounds.o \
35 update.o misc.o diag.o percent_m.o
36
37include ../../Makefile.lib
38
39LIBS = $(DYNLIB) $(LINTLIB)
22# Use is subject to license terms.
23#
24# ident "%Z%%M% %I% %E% SMI"
25#
26
27LIBRARY = libwrap.a
28MAJOR = .1
29MINOR = .0
30VERS = $(MAJOR)$(MINOR)
31OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
32 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
33 fromhost.o fix_options.o socket.o tli.o workarounds.o \
34 update.o misc.o diag.o percent_m.o
35
36include ../../Makefile.lib
37
38LIBS = $(DYNLIB) $(LINTLIB)
40ROOTLIBDIR = $(ROOTSFWLIB)
41SONAME = $(LIBRARY:.a=.so)$(MAJOR)
42ROOTLINKS += $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
43$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
44
45MAPFILES = ../mapfile
46
47LDLIBS += -lsocket -lnsl -lc
48

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

56 -_gcc=-Wno-return-type
57
58DISTFILES = clean_exit.c diag.c eval.c fix_options.c fromhost.c \
59 hosts_access.c hosts_ctl.c misc.c mystdarg.h options.c \
60 patchlevel.h percent_m.c percent_x.c refuse.c rfc931.c \
61 setenv.c shell_cmd.c socket.c tcpd.h tli.c update.c \
62 workarounds.c
63
39SONAME = $(LIBRARY:.a=.so)$(MAJOR)
40ROOTLINKS += $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
41$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
42
43MAPFILES = ../mapfile
44
45LDLIBS += -lsocket -lnsl -lc
46

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

54 -_gcc=-Wno-return-type
55
56DISTFILES = clean_exit.c diag.c eval.c fix_options.c fromhost.c \
57 hosts_access.c hosts_ctl.c misc.c mystdarg.h options.c \
58 patchlevel.h percent_m.c percent_x.c refuse.c rfc931.c \
59 setenv.c shell_cmd.c socket.c tcpd.h tli.c update.c \
60 workarounds.c
61
64ROOTSFWSRC = $(ROOTSFWSHSRC)/tcp_wrappers
65ROOTSFWSRCFILES = $(DISTFILES:%=$(ROOTSFWSRC)/%)
62ROOTSRC = $(ROOT)/usr/share/src/tcp_wrappers
63$(ROOTSRC) := OWNER = root
64$(ROOTSRC) := GROUP = bin
65ROOTSRCFILES = $(DISTFILES:%=$(ROOTSRC)/%)
66
67.KEEP_STATE:
68
69all: $(LIBS)
70
71lint: lintcheck
72
66
67.KEEP_STATE:
68
69all: $(LIBS)
70
71lint: lintcheck
72
73$(ROOTLIBS): $(ROOTLIBDIR)
74
75$(ROOTLIBDIR): $(ROOTSFW)
76 $(INS.dir)
77
78$(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
79 $(INS.liblink)
80
73$(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
74 $(INS.liblink)
75
81$(ROOTSFWSRCFILES) := FILEMODE = 0444
82$(ROOTSFWSRCFILES): $(ROOTSFWSRC)
76$(ROOTSRCFILES) := FILEMODE = 0444
77$(ROOTSRCFILES): $(ROOTSRC)
83
78
84$(ROOTSFWSRC): $(ROOTSFWSHSRC)
79$(ROOTSRC):
85 $(INS.dir)
86
80 $(INS.dir)
81
87$(ROOTSFWSHSRC): $(ROOTSFW)/share
88 $(INS.dir)
89
90$(ROOTSFWSRC)/%: $(SRCDIR)/%
82$(ROOTSRC)/%: $(SRCDIR)/%
91 $(INS.file)
92
83 $(INS.file)
84
93$(ROOTSFW)/share: $(ROOTSFW)
94 $(INS.dir)
95
96$(ROOTSFW):
97 $(INS.dir)
98
99include ../../Makefile.targ
100
101
102# The rest of this file contains definitions more-or-less directly from the
103# original Makefile of the tcp_wrappers distribution.
104
105##############################
85include ../../Makefile.targ
86
87
88# The rest of this file contains definitions more-or-less directly from the
89# original Makefile of the tcp_wrappers distribution.
90
91##############################
106# System parameters appropriate for Solaris 9
92# System parameters appropriate for Solaris 9 and later
107
108TLI = -DTLI
109BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
110NETGROUP = -DNETGROUP
111
112##############################
113# Start of the optional stuff.
114

--- 75 unchanged lines hidden ---
93
94TLI = -DTLI
95BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
96NETGROUP = -DNETGROUP
97
98##############################
99# Start of the optional stuff.
100

--- 75 unchanged lines hidden ---