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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 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. 12# 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] 18# 19# CDDL HEADER END 20# 21# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22# Use is subject to license terms. 23# 24# uts/sun4u/sys/Makefile 25# 26UTSBASE = ../.. 27 28# 29# include global definitions 30# 31include ../Makefile.sun4u 32 33# 34# Override defaults. 35# 36FILEMODE = 644 37 38SUN4_HDRS= \ 39 async.h \ 40 clock.h \ 41 cmp.h \ 42 cpc_ultra.h \ 43 cpu_sgnblk_defs.h \ 44 ddi_subrdefs.h \ 45 dvma.h \ 46 eeprom.h \ 47 errclassify.h \ 48 fcode.h \ 49 fc_plat.h \ 50 idprom.h \ 51 intr.h \ 52 intreg.h \ 53 ivintr.h \ 54 memlist_plat.h \ 55 memnode.h \ 56 nexusdebug.h \ 57 prom_debug.h \ 58 scb.h \ 59 sun4asi.h \ 60 tod.h \ 61 trapstat.h \ 62 vis.h \ 63 vm_machparam.h \ 64 x_call.h \ 65 xc_impl.h \ 66 zsmach.h 67 68HDRS= \ 69 cheetahregs.h \ 70 cpr_impl.h \ 71 cpu_impl.h \ 72 ecc_kstat.h \ 73 envctrl.h \ 74 envctrl_gen.h \ 75 envctrl_ue250.h \ 76 envctrl_ue450.h \ 77 gpio_87317.h \ 78 iocache.h \ 79 iommu.h \ 80 machasi.h \ 81 machclock.h \ 82 machcpuvar.h \ 83 machparam.h \ 84 machsystm.h \ 85 machthread.h \ 86 mem_cache.h \ 87 mmu.h \ 88 opl_module.h \ 89 prom_plat.h \ 90 pte.h \ 91 sbd_ioctl.h \ 92 spitregs.h \ 93 starfire.h \ 94 sysioerr.h \ 95 sysiosbus.h \ 96 todmostek.h \ 97 traptrace.h 98 99I2CHDRS = clients/max1617.h misc/i2c_svc.h clients/i2c_client.h \ 100 clients/hpc3130.h clients/lm75.h \ 101 clients/pcf8591.h clients/ssc050.h 102 103I2C_DIRS= clients misc 104USR_PSM_ISYS_I2C_ROOT= $(USR_PSM_ISYS_DIR)/i2c 105USR_PSM_ISYS_I2C_DIRS= $(USR_PSM_ISYS_I2C_ROOT) \ 106 $(I2C_DIRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 107 108ROOTI2CHDRS= $(I2CHDRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 109 110MONHDRS= 111#MONHDRS= eeprom.h idprom.h keyboard.h password.h 112 113USR_PSM_MON_DIR= $(USR_PSM_ISYS_DIR)/mon 114 115ROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) 116 117SUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 118 119ROOTMONHDRS= $(MONHDRS:%=$(USR_PSM_MON_DIR)/%) 120 121ROOTDIR= $(ROOT)/usr/share/src 122ROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 123 124ROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 125LINKDEST= ../../../../platform/$(PLATFORM)/include/sys 126 127CHECKHDRS= $(HDRS:%.h=%.check) \ 128 $(MONHDRS:%.h=mon/%.check) \ 129 $(SUN4_HDRS:%.h=%.cmncheck) 130 131.KEEP_STATE: 132 133.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTMONHDRS) $(SUN4_ROOTHDRS) 134 135install_h: $(ROOTDIRS) $(USR_PSM_ISYS_I2C_DIRS) .WAIT \ 136 $(ROOTHDRS) $(ROOTI2CHDRS) \ 137 $(ROOTMONHDRS) \ 138 $(SUN4_ROOTHDRS) $(ROOTLINK) 139 140check: $(CHECKHDRS) 141 142# 143# install rules 144# 145$(USR_PSM_MON_DIR): $(USR_PSM_ISYS_DIR) 146 $(INS.dir) 147 148$(USR_PSM_ISYS_I2C_DIRS): 149 $(INS.dir) 150 151$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR) 152 $(INS.file) 153 154$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR) 155 $(INS.file) 156 157$(USR_PSM_MON_DIR)/%: mon/% $(USR_PSM_MON_DIR) 158 $(INS.file) 159 160$(ROOTDIRS): 161 $(INS.dir) 162 163# -r because this used to be a directory and is now a link. 164$(ROOTLINK): $(ROOTDIRS) 165 -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ 166 167mon/%.check: mon/%.h 168 $(DOT_H_CHECK) 169 170%.check: ../../sfmmu/sys/%.h 171 $(DOT_H_CHECK) 172%.cmncheck: ../../sun4/sys/%.h 173 $(DOT_H_CHECK) 174 175FRC: 176 177include ../../Makefile.targ 178