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 2005 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# uts/sun4u/sys/Makefile 29# 30UTSBASE = ../.. 31 32# 33# include global definitions 34# 35include ../Makefile.sun4u 36 37# 38# Override defaults. 39# 40FILEMODE = 644 41GROUP = bin 42 43SUN4_HDRS= \ 44 async.h \ 45 clock.h \ 46 cmp.h \ 47 cpc_ultra.h \ 48 cpu_sgnblk_defs.h \ 49 ddi_subrdefs.h \ 50 dvma.h \ 51 eeprom.h \ 52 fcode.h \ 53 idprom.h \ 54 intr.h \ 55 intreg.h \ 56 ivintr.h \ 57 memlist_plat.h \ 58 memnode.h \ 59 nexusdebug.h \ 60 nexusintr_impl.h \ 61 prom_debug.h \ 62 scb.h \ 63 sun4asi.h \ 64 tod.h \ 65 trapstat.h \ 66 vis.h \ 67 vm_machparam.h \ 68 x_call.h \ 69 xc_impl.h \ 70 zsmach.h 71 72HDRS= \ 73 cheetahregs.h \ 74 cpr_impl.h \ 75 ecc_kstat.h \ 76 envctrl.h \ 77 envctrl_gen.h \ 78 envctrl_ue250.h \ 79 envctrl_ue450.h \ 80 errclassify.h \ 81 gpio_87317.h \ 82 fc_plat.h \ 83 iocache.h \ 84 iommu.h \ 85 machasi.h \ 86 machclock.h \ 87 machcpuvar.h \ 88 machparam.h \ 89 machsystm.h \ 90 machthread.h \ 91 memtestio.h \ 92 memtestio_ch.h \ 93 memtestio_chp.h \ 94 memtestio_ja.h \ 95 memtestio_jg.h \ 96 memtestio_sf.h \ 97 memtestio_sr.h \ 98 mmu.h \ 99 prom_plat.h \ 100 pte.h \ 101 sbd_ioctl.h \ 102 spitregs.h \ 103 starfire.h \ 104 sysioerr.h \ 105 sysiosbus.h \ 106 todmostek.h \ 107 traptrace.h \ 108 us_drv.h \ 109 wci_cmmu.h \ 110 wci_common.h \ 111 wci_offsets.h \ 112 wci_regs.h \ 113 wrsm.h \ 114 wrsm_config.h \ 115 wrsm_plugin.h \ 116 wrsm_plat.h \ 117 wrsm_common.h \ 118 wrsm_types.h 119 120DMFEHDRS = dmfe.h dmfe_impl.h miiregs.h 121 122ROOTDMFEDIR = $(ROOT)/usr/include/sys 123 124ROOTDMFEHDRS = $(DMFEHDRS:%=$(ROOTDMFEDIR)/%) 125 126I2CHDRS = clients/max1617.h misc/i2c_svc.h clients/i2c_client.h \ 127 clients/scmi2c.h clients/hpc3130.h clients/lm75.h \ 128 clients/pcf8591.h clients/ssc050.h 129I2C_DIRS= clients misc 130USR_PSM_ISYS_I2C_ROOT= $(USR_PSM_ISYS_DIR)/i2c 131USR_PSM_ISYS_I2C_DIRS= $(USR_PSM_ISYS_I2C_ROOT) \ 132 $(I2C_DIRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 133 134ROOTI2CHDRS= $(I2CHDRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 135 136 137MONHDRS= 138#MONHDRS= eeprom.h idprom.h keyboard.h password.h 139 140USR_PSM_MON_DIR= $(USR_PSM_ISYS_DIR)/mon 141 142ROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) 143SUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 144 145ROOTMONHDRS= $(MONHDRS:%=$(USR_PSM_MON_DIR)/%) 146 147ROOTDIR= $(ROOT)/usr/share/src 148ROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 149 150ROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 151LINKDEST= ../../../../platform/$(PLATFORM)/include/sys 152 153CHECKHDRS= $(HDRS:%.h=%.check) \ 154 $(MONHDRS:%.h=mon/%.check) \ 155 $(SUN4_HDRS:%.h=%.cmncheck) 156 157.KEEP_STATE: 158 159.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTMONHDRS) $(SUN4_ROOTHDRS) 160 161install_h: $(ROOTDIRS) $(USR_PSM_ISYS_I2C_DIRS) $(ROOTDMFEDIR) .WAIT \ 162 $(ROOTHDRS) $(ROOTI2CHDRS) \ 163 $(ROOTMONHDRS) $(ROOTDMFEHDRS) \ 164 $(SUN4_ROOTHDRS) $(ROOTLINK) 165 166check: $(CHECKHDRS) 167 168# 169# install rules 170# 171$(USR_PSM_MON_DIR): $(USR_PSM_ISYS_DIR) 172 $(INS.dir.root.bin) 173 174$(USR_PSM_ISYS_I2C_DIRS): 175 $(INS.dir.root.bin) 176 177$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR) 178 $(INS.file) 179 180$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR) 181 $(INS.file) 182 183$(USR_PSM_MON_DIR)/%: mon/% $(USR_PSM_MON_DIR) 184 $(INS.file) 185 186$(ROOTDMFEDIR)/%: % $(ROOTDMFEDIR) 187 $(INS.file) 188 189$(ROOTDMFEDIR): 190 $(INS.dir.root.bin) 191 192$(ROOTDIRS): 193 $(INS.dir.root.bin) 194 195# -r because this used to be a directory and is now a link. 196$(ROOTLINK): $(ROOTDIRS) 197 -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK) 198 199mon/%.check: mon/%.h 200 $(DOT_H_CHECK) 201 202%.check: ../../sfmmu/sys/%.h 203 $(DOT_H_CHECK) 204%.cmncheck: ../../sun4/sys/%.h 205 $(DOT_H_CHECK) 206 207FRC: 208 209include ../../Makefile.targ 210