# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" # # lib/librsc/Makefile.com # LIBRARY= librsc.a VERS= .1 # PLATFORM_OBJECTS is defined in platform Makefile OBJECTS= $(PLATFORM_OBJECTS) include $(SRC)/lib/Makefile.lib include $(SRC)/Makefile.psm CPPFLAGS += $(PLATINCS) LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) LINKED_LIBRSC_DIR = \ $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so) LINKED_LIBRSC1_DIR = \ $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/librsc.so.1) LINKED_LLIBLRSC_DIR = \ $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/llib-lrsc.ln) SRCDIR = common LIBS = $(DYNLIB) $(LINTLIB) CFLAGS += $(CCVERBOSE) LDLIBS += -lc PLATLIBS = $(USR_PLAT_DIR)/$(PLATFORM)/lib/ INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so.1 $@ $(CHOWNLINK) $(CHGRPLINK) INS.slink7= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/librsc.so $@ $(CHOWNLINK) $(CHGRPLINK) INS.slink8= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/llib-lrsc.ln $@ $(CHOWNLINK) $(CHGRPLINK) .KEEP_STATE: # # build/lint rules # all: $(LIBS) lint: lintcheck # # install rules # $(PLATLIBS)/librsc.so: $(RM) -r $@; $(SYMLINK) librsc.so.1 $@ $(CHOWNLINK) $(CHGRPLINK) install: all $(USR_PSM_LIBS) $(PLATLIBS)/librsc.so \ $(LINKED_DIRS) $(LINKED_LIB_DIRS) \ $(LINKED_LIBRSC_DIR) $(LINKED_LIBRSC1_DIR) \ $(LINKED_LLIBLRSC_DIR) $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) $(INS.file) $(LINKED_DIRS): $(USR_PLAT_DIR) -$(INS.dir.root.sys) $(LINKED_LIB_DIRS): $(LINKED_DIRS) -$(INS.dir.root.sys) $(LINKED_LIBRSC_DIR): $(USR_PLAT_DIR) -$(INS.slink7) $(LINKED_LIBRSC1_DIR): $(USR_PLAT_DIR) -$(INS.slink6) $(LINKED_LLIBLRSC_DIR): $(USR_PLAT_DIR) -$(INS.slink8) include $(SRC)/lib/Makefile.targ