xref: /illumos-gate/usr/src/ucblib/librpcsoc/Makefile.com (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# ucblib/librpcsoc/Makefile.com
29#
30
31LIBRARY= librpcsoc.a
32VERS = .1
33
34CLOBBERFILES += lint.out
35
36
37OBJECTS= clnt_tcp.o clnt_udp.o getrpcport.o rtime.o svc_tcp.o svc_udp.o get_myaddress.o
38
39# include library definitions
40include $(SRC)/lib/Makefile.lib
41
42MAPFILE=	$(MAPDIR)/mapfile
43CLOBBERFILES += $(MAPFILE)
44SRCS=		$(OBJECTS:%.o=../%.c)
45
46objs/%.o pics/%.o: ../%.c
47	$(COMPILE.c) -o $@ $<
48	$(POST_PROCESS_O)
49
50LIBS = $(DYNLIB)
51
52LDLIBS += -lnsl -lsocket -lc
53CPPFLAGS += -DPORTMAP
54DYNFLAGS += -M $(MAPFILE)
55
56ROOTLIBDIR=	$(ROOT)/usr/ucblib
57ROOTLIBDIR64=   $(ROOT)/usr/ucblib/$(MACH64)
58
59LINTSRC= $(LINTLIB:%.ln=%)
60$(LINTLIB):= SRCS=../$(LINTSRC)
61
62CPPFLAGS = -I$(ROOT)/usr/ucbinclude -I../../../lib/libc/inc $(CPPFLAGS.master)
63
64.KEEP_STATE:
65
66$(DYNLIB):	$(MAPFILE)
67
68$(MAPFILE):
69	@cd $(MAPDIR); $(MAKE) mapfile
70
71lint: lintcheck
72
73# include library targets
74include $(SRC)/lib/Makefile.targ
75include ../../Makefile.ucbtarg
76
77# install rule for lint library target
78$(ROOTLINTDIR)/%: ../%
79	$(INS.file)
80