xref: /onnv-gate/usr/src/lib/libtsalarm/Makefile.com (revision 10207:87c40ea3fc4b)
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#
22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
234975Swillard# Use is subject to license terms.
244975Swillard#
254975Swillard
264975SwillardLIBRARY= libtsalarm.a
274975SwillardVERS= .1
284975Swillard
294975Swillard# PLATFORM_OBJECTS is defined in platform Makefile
304975SwillardOBJECTS= $(PLATFORM_OBJECTS)
314975Swillard
324975Swillardinclude $(SRC)/lib/Makefile.lib
334975Swillardinclude $(SRC)/Makefile.psm
344975Swillard
354975SwillardSRCDIR =	../common
364975Swillard
374975SwillardCPPFLAGS +=	-I../../libpcp/common
384975Swillard
395325Sky115808LINKED_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
405325Sky115808LINKED_LIB_DIRS	= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
415325Sky115808LINKED_LIBTSALARM_DIR	= \
425325Sky115808	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libtsalarm.so)
435325Sky115808LINKED_LIBTSALARM1_DIR	= \
445325Sky115808	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libtsalarm.so.1)
455325Sky115808LINKED_INCL_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/include)
465325Sky115808
474975SwillardLIBS = $(DYNLIB)
484975SwillardCFLAGS +=	$(CCVERBOSE)
494980Sky115808LDLIBS +=	-L$(USR_PLAT_DIR)/$(PLATFORM)/lib -lpcp -lc
505901Sky115808DYNFLAGS +=	-R/usr/platform/$(PLATFORM)/lib
514975SwillardPLATLIBS =	$(USR_PLAT_DIR)/$(PLATFORM)/lib
52*10207SJames.McPherson@Sun.COMINS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libtsalarm.so.1 $@
53*10207SJames.McPherson@Sun.COMINS.slink7=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libtsalarm.so $@
54*10207SJames.McPherson@Sun.COMINS.slink8=	$(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/include $@
554975Swillard
564975Swillard.KEEP_STATE:
574975Swillard
584975Swillard#
594975Swillard# build/lint rules
604975Swillard#
614975Swillardall:	$(LIBS)
624975Swillard
634975Swillardlint:	lintcheck
644975Swillard
654975Swillardinclude $(SRC)/lib/Makefile.targ
66