xref: /onnv-gate/usr/src/cmd/sgs/pvs/Makefile.com (revision 11827:d7ef53deac3f)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51618Srie# Common Development and Distribution License (the "License").
61618Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
211618Srie
220Sstevel@tonic-gate#
23*11827SRod.Evans@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate
270Sstevel@tonic-gatePROG=		pvs
280Sstevel@tonic-gate
290Sstevel@tonic-gateinclude		$(SRC)/cmd/Makefile.cmd
300Sstevel@tonic-gateinclude		$(SRC)/cmd/sgs/Makefile.com
310Sstevel@tonic-gate
320Sstevel@tonic-gateCOMOBJ=		pvs.o
330Sstevel@tonic-gateBLTOBJ=		msg.o
340Sstevel@tonic-gate
357682SAli.Bahrami@Sun.COMTOOLOBJS =	alist.o
367682SAli.Bahrami@Sun.COM
377682SAli.Bahrami@Sun.COMOBJS=		$(BLTOBJ) $(COMOBJ) $(TOOLOBJS)
380Sstevel@tonic-gate
394271SrieMAPFILE=	$(MAPFILE.NGB)
404271SrieMAPOPTS=	$(MAPFILE:%=-M%)
410Sstevel@tonic-gate
421824SrieCPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc
430Sstevel@tonic-gateLLDFLAGS =	'-R$$ORIGIN/../lib'
440Sstevel@tonic-gateLLDFLAGS64 =	'-R$$ORIGIN/../../lib/$(MACH64)'
45*11827SRod.Evans@Sun.COMLDFLAGS +=	$(VERSREF) $(CC_USE_PROTO) $(MAPOPTS) $(LLDFLAGS)
461618SrieLDLIBS +=	$(LDDBGLIBDIR) $(LDDBG_LIB) $(ELFLIBDIR) -lelf \
471618Srie		    $(CONVLIBDIR) $(CONV_LIB)
480Sstevel@tonic-gateLINTFLAGS +=	-x
490Sstevel@tonic-gateLINTFLAGS64 +=	-x
500Sstevel@tonic-gate
510Sstevel@tonic-gateBLTDEFS=	msg.h
520Sstevel@tonic-gateBLTDATA=	msg.c
530Sstevel@tonic-gateBLTMESG=	$(SGSMSGDIR)/pvs
540Sstevel@tonic-gate
550Sstevel@tonic-gateBLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
560Sstevel@tonic-gate
570Sstevel@tonic-gateSGSMSGCOM=      ../common/pvs.msg
580Sstevel@tonic-gateSGSMSGTARG=	$(SGSMSGCOM)
590Sstevel@tonic-gateSGSMSGALL=	$(SGSMSGCOM)
600Sstevel@tonic-gate
610Sstevel@tonic-gateSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n pvs_msg
620Sstevel@tonic-gate
637682SAli.Bahrami@Sun.COMSRCS=		$(COMOBJ:%.o=../common/%.c) $(BLTDATA) \
647682SAli.Bahrami@Sun.COM		$(TOOLOBJS:%.o=$(SGSTOOLS)/common/%.c)
650Sstevel@tonic-gateLINTSRCS=	$(SRCS) ../common/lintsup.c
660Sstevel@tonic-gate
670Sstevel@tonic-gateCLEANFILES +=	$(LINTOUTS) $(BLTFILES)
68