xref: /titanic_52/usr/src/cmd/sgs/ar/Makefile.targ (revision ba7866cd2cbdf574f47d4e38a1301b90744dd677)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
567298654Sdamico# Common Development and Distribution License (the "License").
667298654Sdamico# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*ba7866cdSAli Bahrami# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate
247c478bd9Sstevel@tonic-gateobjs/%.o \
257c478bd9Sstevel@tonic-gateobjs.xpg4/%.o:	../common/%.c
267c478bd9Sstevel@tonic-gate		$(COMPILE.c) -o $@ $<
277c478bd9Sstevel@tonic-gate		$(POST_PROCESS_O)
287c478bd9Sstevel@tonic-gate
29*ba7866cdSAli Bahramiobjs/%.o \
30*ba7866cdSAli Bahramiobjs.xpg4/%.o:	%.c
31*ba7866cdSAli Bahrami		$(COMPILE.c) -o $@ $<
32*ba7866cdSAli Bahrami		$(POST_PROCESS_O)
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateclean:
35*ba7866cdSAli Bahrami		$(RM) $(OBJS) $(XPG4OBJS) $(CLEANFILES)
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gatedelete:
387c478bd9Sstevel@tonic-gate		$(RM) $(PROG)
397c478bd9Sstevel@tonic-gate
40*ba7866cdSAli Bahramicatalog:	$(BLTMESG)
417c478bd9Sstevel@tonic-gate
42*ba7866cdSAli Bahrami.PARALLEL:	$(LINTOUT32) $(LINTOUT64)
437c478bd9Sstevel@tonic-gate
44*ba7866cdSAli Bahramilint:		$(LINTOUT32) $(SGSLINTOUT)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate$(PROG):	$(OBJS)
477c478bd9Sstevel@tonic-gate		$(LINK.c) -o $@ $(LLDFLAGS) $(OBJS) $(LDLIBS)
487c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gate$(XPG4):	$(XPG4OBJS)
517c478bd9Sstevel@tonic-gate		$(LINK.c) -o $@ $(XPG4OBJS) $(LDLIBS)
527c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate$(OBJS):	objs
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate$(XPG4OBJS):	objs.xpg4
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateobjs objs.xpg4:
597c478bd9Sstevel@tonic-gate		-@ mkdir -p $@
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateinclude		$(SRC)/cmd/Makefile.targ
62*ba7866cdSAli Bahramiinclude		$(SRC)/cmd/sgs/Makefile.targ
63*ba7866cdSAli Bahrami
64*ba7866cdSAli Bahrami# Derived source and header files (messaging).
65*ba7866cdSAli Bahrami
66*ba7866cdSAli Bahramicatalog:	$(BLTMESG)
67*ba7866cdSAli Bahrami
68*ba7866cdSAli Bahramichkmsg:		$(SRCS)
69*ba7866cdSAli Bahrami		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS)
70*ba7866cdSAli Bahrami
71*ba7866cdSAli Bahrami$(BLTDEFS) + \
72*ba7866cdSAli Bahrami$(BLTDATA) + \
73*ba7866cdSAli Bahrami$(BLTMESG):	$(SGSMSGALL)
74*ba7866cdSAli Bahrami		$(SGSMSG) $(SGSMSGFLAGS) $(SGSMSGALL)
75