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.
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.
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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
29 # PLATFORM_OBJECTS is defined in platform Makefile
30 OBJECTS= $(PLATFORM_OBJECTS)
32 include $(SRC)/lib/Makefile.lib
33 include $(SRC)/Makefile.psm
35 CPPFLAGS += $(PLATINCS)
37 LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
38 LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
40 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so)
41 LINKED_LIBRSC1_DIR = \
42 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so.1)
43 LINKED_LLIBLRSC_DIR = \
44 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/llib-lrsc.ln)
46 # There should be a mapfile here
50 LIBS = $(DYNLIB) $(LINTLIB)
51 CFLAGS += $(CCVERBOSE)
53 PLATLIBS = $(USR_PLAT_DIR)/$(PLATFORM)/lib/
54 INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so.1 $@
55 INS.slink7= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so $@
56 INS.slink8= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/llib-lrsc.ln $@
69 $(PLATLIBS)/librsc.so:
70 $(RM) -r $@; $(SYMLINK) librsc.so.1 $@
72 install: all $(USR_PSM_LIBS) $(PLATLIBS)/librsc.so \
73 $(LINKED_DIRS) $(LINKED_LIB_DIRS) \
74 $(LINKED_LIBRSC_DIR) $(LINKED_LIBRSC1_DIR) \
75 $(LINKED_LLIBLRSC_DIR)
77 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
80 $(LINKED_DIRS): $(USR_PLAT_DIR)
83 $(LINKED_LIB_DIRS): $(LINKED_DIRS)
86 $(LINKED_LIBRSC_DIR): $(USR_PLAT_DIR)
89 $(LINKED_LIBRSC1_DIR): $(USR_PLAT_DIR)
92 $(LINKED_LLIBLRSC_DIR): $(USR_PLAT_DIR)
95 include $(SRC)/lib/Makefile.targ