Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# CDDL HEADER START
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# The contents of this file are subject to the terms of the
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# Common Development and Distribution License, Version 1.0 only
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# (the "License"). You may not use this file except in compliance
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# with the License.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# See the License for the specific language governing permissions
02fc09f797e83e80199c96adc4751c230dccc973Adam Moore# and limitations under the License.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# When distributing Covered Code, include this CDDL HEADER in each
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# If applicable, add the following below this CDDL HEADER, with the
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# fields enclosed by brackets "[]" replaced with your own identifying
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# information: Portions Copyright [yyyy] [name of copyright owner]
c4f19796d319a7ec9a1e76d48adc82c9c5ae2f27Adam Moore# CDDL HEADER END
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore# Use is subject to license terms.
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# ident "%Z%%M% %I% %E% SMI"
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# include global definitions
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# List of architectures to build as part of the standard build.
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# Note that sparc must trail the individual platforms so that sparc
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore# lint targets will have the unix lint libraries to compare against.
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam Mooredef all lint: all_h $(PMTMO_FILE) $($(MACH)_ARCHITECTURES)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinstall: all_h install_dirs $(PMTMO_FILE) $($(MACH)_ARCHITECTURES)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore echo 'ERROR: $$(PATCH_MAKEUP_TABLE) not set' \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore $(CTFCVTPTBL) -o $(PMTMO_FILE) $(PATCH_MAKEUP_TABLE)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# The following is the list of directories which contain Makefiles with
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# targets to install header file. The machine independent headers are
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# installed by invoking the Makefile in the directory containing the
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# header files. Machine and architecture dependent headers are installed
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# by invoking the main makefile for that architecture/machine which,
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# in turn, is responsible for invoking the Makefiles which install headers.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# It is done this way so as not to assume that all of the header files in
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# the architecture/machine dependent subdirectories are in completely
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# isomorphic locations.
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCOMMON_HDRDIRS= common/des common/fs common/gssapi common/inet common/net \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore common/netinet common/nfs common/rpc common/sys common/vm \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore common/c2 common/pcmcia/sys common/rpcsvc common/inet/kssl \
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore# These aren't the only headers in closed. But the other directories
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore# are simple enough that they can be driven from the src tree.
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Moore$(CLOSED_BUILD)COMMON_HDRDIRS += $(CLOSED)/uts/common/sys
eab87f0881fdf3e80c2a1af9224c50f0bf033644Adam Mooreinstall_h check: $(HDRDIRS) $($(MACH)_ARCHITECTURES)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# ensures that headers made by rpcgen and others are available in uts source
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# for kernel builds to reference without building install_h
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# edit onc plus source files.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# Cross-reference customization: build a cross-reference over all of
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# the supported architectures. Although there's no correct way to set
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# the include path (since we don't know what architecture is the one
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# the user will be interested in), it's historically been set to
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# mirror the $(XRDIRS) list, and that works kinda sorta okay.
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreSHARED_XRDIRS = $(sparc_ARCHITECTURES) $(i386_ARCHITECTURES) sun4 sfmmu \
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCLOSED_XRDIRS = $(SHARED_XRDIRS:%=% ../../closed/uts/%)