xref: /titanic_41/usr/src/lib/libtsalarm/Makefile.com (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
14a6822d0Swillard#
24a6822d0Swillard# CDDL HEADER START
34a6822d0Swillard#
44a6822d0Swillard# The contents of this file are subject to the terms of the
54a6822d0Swillard# Common Development and Distribution License (the "License").
64a6822d0Swillard# You may not use this file except in compliance with the License.
74a6822d0Swillard#
84a6822d0Swillard# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94a6822d0Swillard# or http://www.opensolaris.org/os/licensing.
104a6822d0Swillard# See the License for the specific language governing permissions
114a6822d0Swillard# and limitations under the License.
124a6822d0Swillard#
134a6822d0Swillard# When distributing Covered Code, include this CDDL HEADER in each
144a6822d0Swillard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154a6822d0Swillard# If applicable, add the following below this CDDL HEADER, with the
164a6822d0Swillard# fields enclosed by brackets "[]" replaced with your own identifying
174a6822d0Swillard# information: Portions Copyright [yyyy] [name of copyright owner]
184a6822d0Swillard#
194a6822d0Swillard# CDDL HEADER END
204a6822d0Swillard#
214a6822d0Swillard#
22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
234a6822d0Swillard# Use is subject to license terms.
244a6822d0Swillard#
254a6822d0Swillard
264a6822d0SwillardLIBRARY= libtsalarm.a
274a6822d0SwillardVERS= .1
284a6822d0Swillard
294a6822d0Swillard# PLATFORM_OBJECTS is defined in platform Makefile
304a6822d0SwillardOBJECTS= $(PLATFORM_OBJECTS)
314a6822d0Swillard
324a6822d0Swillardinclude $(SRC)/lib/Makefile.lib
334a6822d0Swillardinclude $(SRC)/Makefile.psm
344a6822d0Swillard
354a6822d0SwillardSRCDIR =	../common
364a6822d0Swillard
374a6822d0SwillardCPPFLAGS +=	-I../../libpcp/common
384a6822d0Swillard
398696d418Sky115808LINKED_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
408696d418Sky115808LINKED_LIB_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
418696d418Sky115808LINKED_LIBTSALARM_DIR	= \
428696d418Sky115808	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libtsalarm.so)
438696d418Sky115808LINKED_LIBTSALARM1_DIR	= \
448696d418Sky115808	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libtsalarm.so.1)
458696d418Sky115808LINKED_INCL_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/include)
468696d418Sky115808
474a6822d0SwillardLIBS = $(DYNLIB)
484a6822d0SwillardCFLAGS +=	$(CCVERBOSE)
49eb5e33ccSky115808LDLIBS +=	-L$(USR_PLAT_DIR)/$(PLATFORM)/lib -lpcp -lc
502f79bea1Sky115808DYNFLAGS +=	-R/usr/platform/$(PLATFORM)/lib
514a6822d0SwillardPLATLIBS =	$(USR_PLAT_DIR)/$(PLATFORM)/lib
52*24fe0b3bSjmcpINS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libtsalarm.so.1 $@
53*24fe0b3bSjmcpINS.slink7=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libtsalarm.so $@
54*24fe0b3bSjmcpINS.slink8=	$(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/include $@
554a6822d0Swillard
564a6822d0Swillard.KEEP_STATE:
574a6822d0Swillard
584a6822d0Swillard#
594a6822d0Swillard# build/lint rules
604a6822d0Swillard#
614a6822d0Swillardall:	$(LIBS)
624a6822d0Swillard
634a6822d0Swillardlint:	lintcheck
644a6822d0Swillard
654a6822d0Swillardinclude $(SRC)/lib/Makefile.targ
66