xref: /onnv-gate/usr/src/lib/libtsalarm/sparc/Makefile (revision 10738:6cd5e5169fec)
14975Swillard#
24975Swillard# CDDL HEADER START
34975Swillard#
44975Swillard# The contents of this file are subject to the terms of the
54975Swillard# Common Development and Distribution License (the "License").
64975Swillard# You may not use this file except in compliance with the License.
74975Swillard#
84975Swillard# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94975Swillard# or http://www.opensolaris.org/os/licensing.
104975Swillard# See the License for the specific language governing permissions
114975Swillard# and limitations under the License.
124975Swillard#
134975Swillard# When distributing Covered Code, include this CDDL HEADER in each
144975Swillard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154975Swillard# If applicable, add the following below this CDDL HEADER, with the
164975Swillard# fields enclosed by brackets "[]" replaced with your own identifying
174975Swillard# information: Portions Copyright [yyyy] [name of copyright owner]
184975Swillard#
194975Swillard# CDDL HEADER END
204975Swillard#
214975Swillard#
2210207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
234975Swillard# Use is subject to license terms.
244975Swillard#
254975Swillard# lib/libtsalarm/sparc/Makefile
264975Swillard
274975SwillardUTSBASE= ../../../uts
284975Swillard
294975SwillardPLATINCS += -I$(USR_PLAT_DIR)/sun4v/include -I$(UTSBASE)/sun4v
304975Swillard
314975SwillardPLATFORM_OBJECTS= tsalarm.o
324975Swillard
334975Swillard#
345325Sky115808# platform library directory (/usr/platform/sun4v/lib)
354975Swillard#
365325Sky115808PLATFORM=sun4v
375325Sky115808LINKED_PLATFORMS = SUNW,Netra-T5220
385325Sky115808LINKED_PLATFORMS += SUNW,Netra-T5440
394975Swillard
404975Swillardinclude ../Makefile.com
414975Swillard
424975Swillard#
434975Swillard# install rules
444975Swillard#
454975Swillard
464975Swillard$(PLATLIBS)/libtsalarm.so:
4710207SJames.McPherson@Sun.COM	$(RM) -r $@; $(SYMLINK) libtsalarm.so.1 $@
484975Swillard
4910355SAli.Bahrami@Sun.COM$(USR_PSM_LIB_DIR)/% := FILEMODE= 755
504975Swillard
514975Swillard$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
524975Swillard	$(INS.file)
534975Swillard
544975Swillard$(USR_PSM_LIB_DIR):
55*10738SJames.McPherson@Sun.COM	$(INS.dir)
564975Swillard
574975Swillard$(USR_PSM_INCL_DIR)/%:	../common/% $(USR_PSM_INCL_DIR)
584975Swillard	$(INS.file)
594975Swillard
604975Swillard$(USR_PSM_INCL_DIR):
61*10738SJames.McPherson@Sun.COM	$(INS.dir)
624975Swillard
635325Sky115808$(LINKED_DIRS):	$(USR_PLAT_DIR)
64*10738SJames.McPherson@Sun.COM	-$(INS.dir)
655325Sky115808
665325Sky115808$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
67*10738SJames.McPherson@Sun.COM	-$(INS.dir)
685325Sky115808
695325Sky115808$(LINKED_LIBTSALARM_DIR):	$(USR_PLAT_DIR)
705325Sky115808	-$(INS.slink7)
715325Sky115808
725325Sky115808$(LINKED_LIBTSALARM1_DIR):	$(USR_PLAT_DIR)
735325Sky115808	-$(INS.slink6)
745325Sky115808
755325Sky115808$(LINKED_INCL_DIRS):	$(LINKED_DIRS)
765325Sky115808	-$(INS.slink8)
775325Sky115808
785325Sky115808install: all install_h $(USR_PSM_LIBS) $(PLATLIBS)/libtsalarm.so \
795325Sky115808	$(LINKED_DIRS) $(LINKED_LIB_DIRS) \
805325Sky115808	$(LINKED_LIBTSALARM_DIR) $(LINKED_LIBTSALARM1_DIR) \
815325Sky115808	$(LINKED_INCL_DIRS)
824975Swillard
834975Swillardinstall_h: $(USR_PSM_INCL_DIR)/tsalarm.h
84