xref: /titanic_51/usr/src/lib/libpcp/Makefile.com (revision 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b)
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 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libpcp/Makefile.com
29#
30
31LIBRARY= libpcp.a
32VERS= .1
33
34# PLATFORM_OBJECTS is defined in platform Makefile
35OBJECTS= $(PLATFORM_OBJECTS)
36
37include $(SRC)/lib/Makefile.lib
38include $(SRC)/Makefile.psm
39
40MAPFILE =	../common/mapfile-vers
41
42DYNFLAGS +=	-M $(MAPFILE)
43
44CPPFLAGS +=	$(PLATINCS) -DPCP_CKSUM_ENABLE
45
46LINKED_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
47LINKED_LIB_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
48LINKED_LIBPCP_DIR	= \
49	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libpcp.so)
50LINKED_LIBPCP1_DIR	= \
51	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libpcp.so.1)
52LINKED_LLIBLPCP_DIR 	= \
53	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/llib-lpcp.ln)
54
55SRCDIR =	../common
56LIBS = $(DYNLIB) $(LINTLIB)
57CFLAGS +=	$(CCVERBOSE)
58LDLIBS +=	-lc -lumem
59PLATLIBS =	$(USR_PLAT_DIR)/$(PLATFORM)/lib
60INS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libpcp.so.1 $@ $(CHOWNLINK) $(CHGRPLINK)
61INS.slink7=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libpcp.so $@ $(CHOWNLINK) $(CHGRPLINK)
62INS.slink8=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/llib-lpcp.ln $@ $(CHOWNLINK) $(CHGRPLINK)
63
64.KEEP_STATE:
65
66#
67# build/lint rules
68#
69all:	$(LIBS)
70
71lint:	lintcheck
72
73$(DYNLIB):	$(MAPFILE)
74
75include $(SRC)/lib/Makefile.targ
76