xref: /onnv-gate/usr/src/cmd/sgs/pvs/Makefile.targ (revision 7682:b04d06fd448f)
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
5*7682SAli.Bahrami@Sun.COM# Common Development and Distribution License (the "License").
6*7682SAli.Bahrami@Sun.COM# 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#
210Sstevel@tonic-gate#
22*7682SAli.Bahrami@Sun.COM# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*7682SAli.Bahrami@Sun.COM# Use is subject to license terms.
24*7682SAli.Bahrami@Sun.COM
250Sstevel@tonic-gate
260Sstevel@tonic-gate%.o:		../common/%.c
270Sstevel@tonic-gate		$(COMPILE.c) $<
280Sstevel@tonic-gate		$(POST_PROCESS_O)
290Sstevel@tonic-gate
30*7682SAli.Bahrami@Sun.COM%.o:		$(SGSTOOLS)/common/%.c
31*7682SAli.Bahrami@Sun.COM		$(COMPILE.c) -o $@ $<
32*7682SAli.Bahrami@Sun.COM		$(POST_PROCESS_O)
33*7682SAli.Bahrami@Sun.COM
340Sstevel@tonic-gateall:		$(PROG)
350Sstevel@tonic-gate
360Sstevel@tonic-gateclean:
370Sstevel@tonic-gate		$(RM) $(OBJS) $(CLEANFILES)
380Sstevel@tonic-gate
390Sstevel@tonic-gatedelete:
400Sstevel@tonic-gate		$(RM) $(PROG)
410Sstevel@tonic-gate
420Sstevel@tonic-gateinstall \
430Sstevel@tonic-gatepackage:	all $(ROOTPROG)
440Sstevel@tonic-gate
450Sstevel@tonic-gatelint:		$(LINTOUT32) $(SGSLINTOUT)
460Sstevel@tonic-gate
470Sstevel@tonic-gate$(PROG):	$(OBJS)  $(MAPFILE)
480Sstevel@tonic-gate		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
490Sstevel@tonic-gate		$(POST_PROCESS)
500Sstevel@tonic-gate
510Sstevel@tonic-gateinclude		$(SRC)/cmd/Makefile.targ
520Sstevel@tonic-gateinclude		$(SRC)/cmd/sgs/Makefile.targ
530Sstevel@tonic-gate
540Sstevel@tonic-gate# Derived source and header files (messaging).
550Sstevel@tonic-gate
560Sstevel@tonic-gatecatalog:	$(BLTMESG)
570Sstevel@tonic-gate
580Sstevel@tonic-gatechkmsg:		$(SRCS)
590Sstevel@tonic-gate		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
600Sstevel@tonic-gate
610Sstevel@tonic-gate$(BLTDEFS) + \
620Sstevel@tonic-gate$(BLTDATA) + \
630Sstevel@tonic-gate$(BLTMESG) :	$(SGSMSGALL)
640Sstevel@tonic-gate		$(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
65