xref: /titanic_53/usr/src/lib/librsc/Makefile.com (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
1*03831d35Sstevel#
2*03831d35Sstevel# CDDL HEADER START
3*03831d35Sstevel#
4*03831d35Sstevel# The contents of this file are subject to the terms of the
5*03831d35Sstevel# Common Development and Distribution License, Version 1.0 only
6*03831d35Sstevel# (the "License").  You may not use this file except in compliance
7*03831d35Sstevel# with the License.
8*03831d35Sstevel#
9*03831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*03831d35Sstevel# or http://www.opensolaris.org/os/licensing.
11*03831d35Sstevel# See the License for the specific language governing permissions
12*03831d35Sstevel# and limitations under the License.
13*03831d35Sstevel#
14*03831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each
15*03831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*03831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the
17*03831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
18*03831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
19*03831d35Sstevel#
20*03831d35Sstevel# CDDL HEADER END
21*03831d35Sstevel#
22*03831d35Sstevel#
23*03831d35Sstevel# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*03831d35Sstevel# Use is subject to license terms.
25*03831d35Sstevel#
26*03831d35Sstevel# ident	"%Z%%M%	%I%	%E% SMI"
27*03831d35Sstevel#
28*03831d35Sstevel# lib/librsc/Makefile.com
29*03831d35Sstevel#
30*03831d35Sstevel
31*03831d35SstevelLIBRARY= librsc.a
32*03831d35SstevelVERS= .1
33*03831d35Sstevel
34*03831d35Sstevel# PLATFORM_OBJECTS is defined in platform Makefile
35*03831d35SstevelOBJECTS= $(PLATFORM_OBJECTS)
36*03831d35Sstevel
37*03831d35Sstevelinclude $(SRC)/lib/Makefile.lib
38*03831d35Sstevelinclude $(SRC)/Makefile.psm
39*03831d35Sstevel
40*03831d35SstevelCPPFLAGS +=	$(PLATINCS)
41*03831d35Sstevel
42*03831d35SstevelLINKED_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
43*03831d35SstevelLINKED_LIB_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
44*03831d35SstevelLINKED_LIBRSC_DIR	= \
45*03831d35Sstevel	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so)
46*03831d35SstevelLINKED_LIBRSC1_DIR	= \
47*03831d35Sstevel	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so.1)
48*03831d35SstevelLINKED_LLIBLRSC_DIR 	= \
49*03831d35Sstevel	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/llib-lrsc.ln)
50*03831d35Sstevel
51*03831d35SstevelSRCDIR =	common
52*03831d35SstevelLIBS = $(DYNLIB) $(LINTLIB)
53*03831d35SstevelCFLAGS +=	$(CCVERBOSE)
54*03831d35SstevelLDLIBS +=	-lc
55*03831d35SstevelPLATLIBS =	$(USR_PLAT_DIR)/$(PLATFORM)/lib/
56*03831d35SstevelINS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so.1 $@ $(CHOWNLINK) $(CHGRPLINK)
57*03831d35SstevelINS.slink7=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so $@ $(CHOWNLINK) $(CHGRPLINK)
58*03831d35SstevelINS.slink8=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/llib-lrsc.ln $@ $(CHOWNLINK) $(CHGRPLINK)
59*03831d35Sstevel
60*03831d35Sstevel.KEEP_STATE:
61*03831d35Sstevel
62*03831d35Sstevel#
63*03831d35Sstevel# build/lint rules
64*03831d35Sstevel#
65*03831d35Sstevelall:	$(LIBS)
66*03831d35Sstevellint:	lintcheck
67*03831d35Sstevel
68*03831d35Sstevel#
69*03831d35Sstevel# install rules
70*03831d35Sstevel#
71*03831d35Sstevel$(PLATLIBS)/librsc.so:
72*03831d35Sstevel	$(RM) -r $@; $(SYMLINK) librsc.so.1 $@ $(CHOWNLINK) $(CHGRPLINK)
73*03831d35Sstevel
74*03831d35Sstevelinstall:	all $(USR_PSM_LIBS) $(PLATLIBS)/librsc.so \
75*03831d35Sstevel		$(LINKED_DIRS) $(LINKED_LIB_DIRS) \
76*03831d35Sstevel		$(LINKED_LIBRSC_DIR) $(LINKED_LIBRSC1_DIR) \
77*03831d35Sstevel		$(LINKED_LLIBLRSC_DIR)
78*03831d35Sstevel
79*03831d35Sstevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
80*03831d35Sstevel	$(INS.file)
81*03831d35Sstevel
82*03831d35Sstevel$(LINKED_DIRS):	$(USR_PLAT_DIR)
83*03831d35Sstevel	-$(INS.dir.root.sys)
84*03831d35Sstevel
85*03831d35Sstevel$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
86*03831d35Sstevel	-$(INS.dir.root.sys)
87*03831d35Sstevel
88*03831d35Sstevel$(LINKED_LIBRSC_DIR): $(USR_PLAT_DIR)
89*03831d35Sstevel	-$(INS.slink7)
90*03831d35Sstevel
91*03831d35Sstevel$(LINKED_LIBRSC1_DIR): $(USR_PLAT_DIR)
92*03831d35Sstevel	-$(INS.slink6)
93*03831d35Sstevel
94*03831d35Sstevel$(LINKED_LLIBLRSC_DIR): $(USR_PLAT_DIR)
95*03831d35Sstevel	-$(INS.slink8)
96*03831d35Sstevel
97*03831d35Sstevelinclude $(SRC)/lib/Makefile.targ
98