xref: /titanic_52/usr/src/lib/smhba/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
19e86db79SHyon Kim#
29e86db79SHyon Kim# CDDL HEADER START
39e86db79SHyon Kim#
49e86db79SHyon Kim# The contents of this file are subject to the terms of the
59e86db79SHyon Kim# Common Development and Distribution License (the "License").
69e86db79SHyon Kim# You may not use this file except in compliance with the License.
79e86db79SHyon Kim#
89e86db79SHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99e86db79SHyon Kim# or http://www.opensolaris.org/os/licensing.
109e86db79SHyon Kim# See the License for the specific language governing permissions
119e86db79SHyon Kim# and limitations under the License.
129e86db79SHyon Kim#
139e86db79SHyon Kim# When distributing Covered Code, include this CDDL HEADER in each
149e86db79SHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159e86db79SHyon Kim# If applicable, add the following below this CDDL HEADER, with the
169e86db79SHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying
179e86db79SHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner]
189e86db79SHyon Kim#
199e86db79SHyon Kim# CDDL HEADER END
209e86db79SHyon Kim#
219e86db79SHyon Kim#
229e86db79SHyon Kim# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
239e86db79SHyon Kim# Use is subject to license terms.
249e86db79SHyon Kim#
259e86db79SHyon Kim
269e86db79SHyon Kim
279e86db79SHyon KimLIBRARY =	libSMHBAAPI.a
289e86db79SHyon KimVERS =		.1
299e86db79SHyon KimOBJECTS	=	SMHBAAPILIB.o
309e86db79SHyon KimCONFIGFILE=	smhba.conf
319e86db79SHyon KimROOTETC=	$(ROOT)/etc
329e86db79SHyon Kim
339e86db79SHyon Kiminclude ../../Makefile.lib
349e86db79SHyon Kim
359e86db79SHyon KimHETCFILES=	$(CONFIGFILE:%=$(ROOTETC)/%)
369e86db79SHyon Kim
379e86db79SHyon KimLIBS =		$(DYNLIB) $(LINTLIB)
389e86db79SHyon KimSRCDIR=		../common
399e86db79SHyon Kim
409e86db79SHyon KimINCS +=		-I$(SRCDIR)
419e86db79SHyon KimINCS +=		-I$(SRC)/lib/hbaapi/common
429e86db79SHyon KimCFLAGS +=	-DSOLARIS
439e86db79SHyon KimCFLAGS +=	-DVERSION='"Version 1"'
449e86db79SHyon KimCFLAGS +=	-DUSESYSLOG
459e86db79SHyon KimCPPFLAGS +=	$(INCS)
469e86db79SHyon KimCPPFLAGS +=	-DPOSIX_THREADS
479e86db79SHyon Kim
48*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
49*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
50*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-function
51*7014882cSRichard Lowe
529e86db79SHyon KimLDLIBS +=	-lc
539e86db79SHyon Kim
549e86db79SHyon Kim$(LINTLIB) := SRCS=	$(SRCDIR)/$(LINTSRC)
559e86db79SHyon Kim
569e86db79SHyon Kim$(ROOTETC)/%:	../common/%
579e86db79SHyon Kim	$(INS.file)
589e86db79SHyon Kim
599e86db79SHyon Kim.KEEP_STATE:
609e86db79SHyon Kim
619e86db79SHyon Kimall:	$(LIBS) $(HETCFILES)
629e86db79SHyon Kim
639e86db79SHyon Kimlint: lintcheck
649e86db79SHyon Kim
659e86db79SHyon Kiminclude ../../Makefile.targ
66