xref: /titanic_44/usr/src/cmd/sgs/Makefile.sub (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# Standard subdirs makefile for the sgs area.
29#
30
31include		$(SRC)/Makefile.master
32
33# This is how the SUBDIRS stuff should look by the time the SGS
34# directory is fully converted:
35#
36# SUBDIRS=	$(MACH) $(BUILD64) $(MACH64)
37#
38# $(SUBDIRS):	FRC
39#	@cd $@; pwd; $(MAKE) $(TARGET)
40#
41# In the meantime, we use an sneaky trick on the $(SUBDIRS) target
42# to build whatever 64-bit directories we actually find as a side-effect
43# of descending into the 32-bit directories.  Ick.
44
45# Note, SPECDIR is defined only in those targets that require spec files.
46SUBDIRS =	$(PRESUBDIRS) $(SPECDIR) $(MACH) $(EXTRASUBDIRS)
47
48all :=		TARGET= all
49clean :=	TARGET= clean
50clobber :=	TARGET= clobber
51delete :=	TARGET= delete
52install :=	TARGET= install
53lint :=		TARGET= lint
54catalog :=	TARGET= catalog
55package :=	TARGET= package
56chkmsg :=	TARGET= chkmsg
57
58.KEEP_STATE_FILE: .make.state.$(MACH)
59.KEEP_STATE:
60
61all clean clobber delete install lint catalog package chkmsg: \
62		$(SUBDIRS)
63
64$(SUBDIRS):	FRC
65		@ cd $@; pwd; $(MAKE) $(TARGET)
66		@ $(BUILD64)if [ -f $(MACH64)/Makefile ]; then		\
67		  $(BUILD64)     cd $(MACH64); pwd; $(MAKE) $(TARGET);	\
68		  $(BUILD64)else /bin/true; fi
69
70FRC:
71