Makefile revision 6dfee4834394825da35b977ca71cdc965bc7b6a4
2441N/A#
2441N/A# CDDL HEADER START
2441N/A#
2441N/A# The contents of this file are subject to the terms of the
2441N/A# Common Development and Distribution License, Version 1.0 only
2441N/A# (the "License"). You may not use this file except in compliance
2441N/A# with the License.
2441N/A#
2441N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2441N/A# or http://www.opensolaris.org/os/licensing.
2441N/A# See the License for the specific language governing permissions
2441N/A# and limitations under the License.
2441N/A#
2441N/A# When distributing Covered Code, include this CDDL HEADER in each
2441N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2441N/A# If applicable, add the following below this CDDL HEADER, with the
2441N/A# fields enclosed by brackets "[]" replaced with your own identifying
2441N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2441N/A#
2441N/A# CDDL HEADER END
2441N/A#
2441N/A#
5583N/A#ident "%Z%%M% %I% %E% SMI"
2441N/A#
2441N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2441N/A# Use is subject to license terms.
2441N/A#
2441N/A# uts/sun4u/sys/Makefile
5583N/A#
2441N/AUTSBASE = ../..
2441N/A
2441N/A#
2441N/A# include global definitions
5583N/A#
2441N/Ainclude ../Makefile.sun4u
2441N/A
2441N/A#
5583N/A# Override defaults.
2899N/A#
3817N/AFILEMODE = 644
3817N/AGROUP = bin
3817N/A
2441N/ASUN4_HDRS= \
2441N/A async.h \
2441N/A clock.h \
2441N/A cmp.h \
2441N/A cpc_ultra.h \
2441N/A cpu_sgnblk_defs.h \
2441N/A ddi_subrdefs.h \
2441N/A dvma.h \
2441N/A eeprom.h \
4557N/A errclassify.h \
4557N/A fcode.h \
4557N/A idprom.h \
4557N/A intr.h \
4557N/A intreg.h \
4557N/A ivintr.h \
4557N/A memlist_plat.h \
4557N/A memnode.h \
4557N/A memtestio.h \
4557N/A nexusdebug.h \
4557N/A prom_debug.h \
4557N/A scb.h \
4557N/A sun4asi.h \
4557N/A tod.h \
4557N/A trapstat.h \
4557N/A vis.h \
2441N/A vm_machparam.h \
2441N/A x_call.h \
3477N/A xc_impl.h \
3477N/A zsmach.h
2441N/A
2441N/AHDRS= \
2441N/A cheetahregs.h \
2441N/A cpr_impl.h \
2441N/A ecc_kstat.h \
2441N/A envctrl.h \
4557N/A envctrl_gen.h \
4337N/A envctrl_ue250.h \
2441N/A envctrl_ue450.h \
3817N/A gpio_87317.h \
3817N/A fc_plat.h \
3817N/A iocache.h \
3817N/A iommu.h \
3817N/A machasi.h \
3817N/A machclock.h \
3817N/A machcpuvar.h \
3817N/A machparam.h \
4885N/A machsystm.h \
machthread.h \
memtestio_u.h \
memtestio_ch.h \
memtestio_chp.h \
memtestio_ja.h \
memtestio_jg.h \
memtestio_pn.h \
memtestio_sf.h \
memtestio_sr.h \
mmu.h \
prom_plat.h \
pte.h \
sbd_ioctl.h \
spitregs.h \
starfire.h \
sysioerr.h \
sysiosbus.h \
todmostek.h \
traptrace.h \
us_drv.h \
wci_cmmu.h \
wci_common.h \
wci_offsets.h \
wci_regs.h \
wrsm.h \
wrsm_config.h \
wrsm_plugin.h \
wrsm_plat.h \
wrsm_common.h \
wrsm_types.h
DMFEHDRS = dmfe.h dmfe_impl.h miiregs.h
ROOTDMFEDIR = $(ROOT)/usr/include/sys
ROOTDMFEHDRS = $(DMFEHDRS:%=$(ROOTDMFEDIR)/%)
I2CHDRS = clients/max1617.h misc/i2c_svc.h clients/i2c_client.h \
clients/scmi2c.h clients/hpc3130.h clients/lm75.h \
clients/pcf8591.h clients/ssc050.h
I2C_DIRS= clients misc
USR_PSM_ISYS_I2C_ROOT= $(USR_PSM_ISYS_DIR)/i2c
USR_PSM_ISYS_I2C_DIRS= $(USR_PSM_ISYS_I2C_ROOT) \
$(I2C_DIRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%)
ROOTI2CHDRS= $(I2CHDRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%)
MONHDRS=
#MONHDRS= eeprom.h idprom.h keyboard.h password.h
USR_PSM_MON_DIR= $(USR_PSM_ISYS_DIR)/mon
ROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%)
SUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%)
ROOTMONHDRS= $(MONHDRS:%=$(USR_PSM_MON_DIR)/%)
ROOTDIR= $(ROOT)/usr/share/src
ROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
ROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys
LINKDEST= ../../../../platform/$(PLATFORM)/include/sys
CHECKHDRS= $(HDRS:%.h=%.check) \
$(MONHDRS:%.h=mon/%.check) \
$(SUN4_HDRS:%.h=%.cmncheck)
.KEEP_STATE:
.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTMONHDRS) $(SUN4_ROOTHDRS)
install_h: $(ROOTDIRS) $(USR_PSM_ISYS_I2C_DIRS) $(ROOTDMFEDIR) .WAIT \
$(ROOTHDRS) $(ROOTI2CHDRS) \
$(ROOTMONHDRS) $(ROOTDMFEHDRS) \
$(SUN4_ROOTHDRS) $(ROOTLINK)
check: $(CHECKHDRS)
#
# install rules
#
$(USR_PSM_MON_DIR): $(USR_PSM_ISYS_DIR)
$(INS.dir.root.bin)
$(USR_PSM_ISYS_I2C_DIRS):
$(INS.dir.root.bin)
$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR)
$(INS.file)
$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR)
$(INS.file)
$(USR_PSM_MON_DIR)/%: mon/% $(USR_PSM_MON_DIR)
$(INS.file)
$(ROOTDMFEDIR)/%: % $(ROOTDMFEDIR)
$(INS.file)
$(ROOTDMFEDIR):
$(INS.dir.root.bin)
$(ROOTDIRS):
$(INS.dir.root.bin)
# -r because this used to be a directory and is now a link.
$(ROOTLINK): $(ROOTDIRS)
-$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK)
mon/%.check: mon/%.h
$(DOT_H_CHECK)
%.check: ../../sfmmu/sys/%.h
$(DOT_H_CHECK)
%.cmncheck: ../../sun4/sys/%.h
$(DOT_H_CHECK)
FRC:
include ../../Makefile.targ