Merge commit '00f1a4f432b3d8aad1aa270e91c44c57f03ef407'
[unleashed.git] / usr / src / cmd / sgs / Makefile.sub
blob289726ea8e6a5e3ac84e021c0aaa1c71e77b20c2
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # ident "%Z%%M% %I%     %E% SMI"
25 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
26 # Use is subject to license terms.
28 # Standard subdirs makefile for the sgs area.
31 include         $(SRC)/Makefile.master
33 # This is how the SUBDIRS stuff should look by the time the SGS
34 # directory is fully converted:
36 # SUBDIRS=      $(MACH) $(BUILD64) $(MACH64)
38 # $(SUBDIRS):   FRC
39 #       @cd $@; pwd; $(MAKE) $(TARGET)
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.
45 SUBDIRS =       $(MACH) $(EXTRASUBDIRS)
47 all :=          TARGET= all
48 clean :=        TARGET= clean
49 clobber :=      TARGET= clobber
50 delete :=       TARGET= delete
51 install :=      TARGET= install
52 catalog :=      TARGET= catalog
53 package :=      TARGET= package
54 chkmsg :=       TARGET= chkmsg
56 .KEEP_STATE:
57 .KEEP_STATE_FILE: .make.state.$(MACH)
59 all clean clobber delete install catalog package chkmsg: \
60                 $(SUBDIRS)
62 $(SUBDIRS):     FRC
63                 @ cd $@; pwd; $(MAKE) $(TARGET)
64                 @ $(BUILD64)if [ -f $(MACH64)/Makefile ]; then          \
65                   $(BUILD64)     cd $(MACH64); pwd; $(MAKE) $(TARGET);  \
66                   $(BUILD64)else /bin/true; fi
68 FRC: