10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51341Sstevel# Common Development and Distribution License (the "License"). 61341Sstevel# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 2110207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 220Sstevel@tonic-gate# Use is subject to license terms. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate# uts/sun4u/sys/Makefile 250Sstevel@tonic-gate# 260Sstevel@tonic-gateUTSBASE = ../.. 270Sstevel@tonic-gate 280Sstevel@tonic-gate# 290Sstevel@tonic-gate# include global definitions 300Sstevel@tonic-gate# 310Sstevel@tonic-gateinclude ../Makefile.sun4u 320Sstevel@tonic-gate 330Sstevel@tonic-gate# 340Sstevel@tonic-gate# Override defaults. 350Sstevel@tonic-gate# 360Sstevel@tonic-gateFILEMODE = 644 370Sstevel@tonic-gate 380Sstevel@tonic-gateSUN4_HDRS= \ 390Sstevel@tonic-gate async.h \ 400Sstevel@tonic-gate clock.h \ 410Sstevel@tonic-gate cmp.h \ 420Sstevel@tonic-gate cpc_ultra.h \ 430Sstevel@tonic-gate cpu_sgnblk_defs.h \ 440Sstevel@tonic-gate ddi_subrdefs.h \ 450Sstevel@tonic-gate dvma.h \ 460Sstevel@tonic-gate eeprom.h \ 47962Stsien errclassify.h \ 480Sstevel@tonic-gate fcode.h \ 491531Skini fc_plat.h \ 500Sstevel@tonic-gate idprom.h \ 510Sstevel@tonic-gate intr.h \ 520Sstevel@tonic-gate intreg.h \ 530Sstevel@tonic-gate ivintr.h \ 540Sstevel@tonic-gate memlist_plat.h \ 550Sstevel@tonic-gate memnode.h \ 560Sstevel@tonic-gate nexusdebug.h \ 570Sstevel@tonic-gate prom_debug.h \ 580Sstevel@tonic-gate scb.h \ 590Sstevel@tonic-gate sun4asi.h \ 600Sstevel@tonic-gate tod.h \ 610Sstevel@tonic-gate trapstat.h \ 620Sstevel@tonic-gate vis.h \ 630Sstevel@tonic-gate vm_machparam.h \ 640Sstevel@tonic-gate x_call.h \ 650Sstevel@tonic-gate xc_impl.h \ 660Sstevel@tonic-gate zsmach.h 670Sstevel@tonic-gate 681167Skupfer$(CLOSED_BUILD)CLOSED_SUN4_HDRS= \ 691167Skupfer memtestio.h 701167Skupfer 710Sstevel@tonic-gateHDRS= \ 720Sstevel@tonic-gate cheetahregs.h \ 730Sstevel@tonic-gate cpr_impl.h \ 741772Sjl139090 cpu_impl.h \ 750Sstevel@tonic-gate ecc_kstat.h \ 761341Sstevel envctrl.h \ 771341Sstevel envctrl_gen.h \ 781341Sstevel envctrl_ue250.h \ 791341Sstevel envctrl_ue450.h \ 800Sstevel@tonic-gate gpio_87317.h \ 810Sstevel@tonic-gate iocache.h \ 820Sstevel@tonic-gate iommu.h \ 830Sstevel@tonic-gate machasi.h \ 840Sstevel@tonic-gate machclock.h \ 850Sstevel@tonic-gate machcpuvar.h \ 860Sstevel@tonic-gate machparam.h \ 870Sstevel@tonic-gate machsystm.h \ 880Sstevel@tonic-gate machthread.h \ 896330Sjc25722 mem_cache.h \ 900Sstevel@tonic-gate mmu.h \ 911772Sjl139090 opl_module.h \ 920Sstevel@tonic-gate prom_plat.h \ 930Sstevel@tonic-gate pte.h \ 940Sstevel@tonic-gate sbd_ioctl.h \ 950Sstevel@tonic-gate spitregs.h \ 960Sstevel@tonic-gate starfire.h \ 970Sstevel@tonic-gate sysioerr.h \ 980Sstevel@tonic-gate sysiosbus.h \ 990Sstevel@tonic-gate todmostek.h \ 1004761Skm84432 traptrace.h 1010Sstevel@tonic-gate 1021167Skupfer$(CLOSED_BUILD)CLOSED_HDRS= \ 1031167Skupfer memtestio_ch.h \ 1041167Skupfer memtestio_chp.h \ 1051167Skupfer memtestio_ja.h \ 1061167Skupfer memtestio_jg.h \ 1071772Sjl139090 memtestio_oc.h \ 1081167Skupfer memtestio_pn.h \ 1091167Skupfer memtestio_sf.h \ 1101167Skupfer memtestio_sr.h \ 1111167Skupfer memtestio_u.h 1121167Skupfer 1130Sstevel@tonic-gateI2CHDRS = clients/max1617.h misc/i2c_svc.h clients/i2c_client.h \ 1141167Skupfer clients/hpc3130.h clients/lm75.h \ 1151167Skupfer clients/pcf8591.h clients/ssc050.h $(CLOSED_I2CHDRS) 1161167Skupfer 1170Sstevel@tonic-gateI2C_DIRS= clients misc 1180Sstevel@tonic-gateUSR_PSM_ISYS_I2C_ROOT= $(USR_PSM_ISYS_DIR)/i2c 1190Sstevel@tonic-gateUSR_PSM_ISYS_I2C_DIRS= $(USR_PSM_ISYS_I2C_ROOT) \ 1200Sstevel@tonic-gate $(I2C_DIRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 1210Sstevel@tonic-gate 1220Sstevel@tonic-gateROOTI2CHDRS= $(I2CHDRS:%=$(USR_PSM_ISYS_I2C_ROOT)/%) 1230Sstevel@tonic-gate 1240Sstevel@tonic-gateMONHDRS= 1250Sstevel@tonic-gate#MONHDRS= eeprom.h idprom.h keyboard.h password.h 1260Sstevel@tonic-gate 1270Sstevel@tonic-gateUSR_PSM_MON_DIR= $(USR_PSM_ISYS_DIR)/mon 1280Sstevel@tonic-gate 1290Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1301167Skupfer$(CLOSED_BUILD)ROOTHDRS += $(CLOSED_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1311167Skupfer 1320Sstevel@tonic-gateSUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1331167Skupfer$(CLOSED_BUILD)SUN4_ROOTHDRS += $(CLOSED_SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1340Sstevel@tonic-gate 1350Sstevel@tonic-gateROOTMONHDRS= $(MONHDRS:%=$(USR_PSM_MON_DIR)/%) 1360Sstevel@tonic-gate 1370Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/share/src 1380Sstevel@tonic-gateROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 1390Sstevel@tonic-gate 1400Sstevel@tonic-gateROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 1410Sstevel@tonic-gateLINKDEST= ../../../../platform/$(PLATFORM)/include/sys 1420Sstevel@tonic-gate 1430Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check) \ 1440Sstevel@tonic-gate $(MONHDRS:%.h=mon/%.check) \ 1450Sstevel@tonic-gate $(SUN4_HDRS:%.h=%.cmncheck) 1460Sstevel@tonic-gate 1471167Skupfer$(CLOSED_BUILD)CHECKHDRS += $(CLOSED_HDRS:%.h=$(CLOSED)/uts/sun4u/sys/%.check) 1481167Skupfer$(CLOSED_BUILD)CHECKHDRS += \ 1491167Skupfer $(CLOSED_I2CHDRS:%.h=$(CLOSED)/uts/sun4u/sys/i2c/%.check) 1501167Skupfer 1510Sstevel@tonic-gate.KEEP_STATE: 1520Sstevel@tonic-gate 1530Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTMONHDRS) $(SUN4_ROOTHDRS) 1540Sstevel@tonic-gate 1555181Sgd78059install_h: $(ROOTDIRS) $(USR_PSM_ISYS_I2C_DIRS) .WAIT \ 1560Sstevel@tonic-gate $(ROOTHDRS) $(ROOTI2CHDRS) \ 1575181Sgd78059 $(ROOTMONHDRS) \ 1580Sstevel@tonic-gate $(SUN4_ROOTHDRS) $(ROOTLINK) 1590Sstevel@tonic-gate 1600Sstevel@tonic-gatecheck: $(CHECKHDRS) 1610Sstevel@tonic-gate 1620Sstevel@tonic-gate# 1630Sstevel@tonic-gate# install rules 1640Sstevel@tonic-gate# 1650Sstevel@tonic-gate$(USR_PSM_MON_DIR): $(USR_PSM_ISYS_DIR) 166*10738SJames.McPherson@Sun.COM $(INS.dir) 1670Sstevel@tonic-gate 1680Sstevel@tonic-gate$(USR_PSM_ISYS_I2C_DIRS): 169*10738SJames.McPherson@Sun.COM $(INS.dir) 1700Sstevel@tonic-gate 1711167Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4u/sys/% $(USR_PSM_ISYS_DIR) 1721167Skupfer $(INS.file) 1731167Skupfer 1741167Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4/sys/% $(USR_PSM_ISYS_DIR) 1751167Skupfer $(INS.file) 1761167Skupfer 1770Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR) 1780Sstevel@tonic-gate $(INS.file) 1790Sstevel@tonic-gate 1800Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR) 1810Sstevel@tonic-gate $(INS.file) 1820Sstevel@tonic-gate 1830Sstevel@tonic-gate$(USR_PSM_MON_DIR)/%: mon/% $(USR_PSM_MON_DIR) 1840Sstevel@tonic-gate $(INS.file) 1850Sstevel@tonic-gate 1860Sstevel@tonic-gate$(ROOTDIRS): 187*10738SJames.McPherson@Sun.COM $(INS.dir) 1880Sstevel@tonic-gate 1890Sstevel@tonic-gate# -r because this used to be a directory and is now a link. 1900Sstevel@tonic-gate$(ROOTLINK): $(ROOTDIRS) 19110207SJames.McPherson@Sun.COM -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ 1920Sstevel@tonic-gate 1930Sstevel@tonic-gatemon/%.check: mon/%.h 1940Sstevel@tonic-gate $(DOT_H_CHECK) 1950Sstevel@tonic-gate 1960Sstevel@tonic-gate%.check: ../../sfmmu/sys/%.h 1970Sstevel@tonic-gate $(DOT_H_CHECK) 1980Sstevel@tonic-gate%.cmncheck: ../../sun4/sys/%.h 1990Sstevel@tonic-gate $(DOT_H_CHECK) 2000Sstevel@tonic-gate 2010Sstevel@tonic-gateFRC: 2020Sstevel@tonic-gate 2030Sstevel@tonic-gateinclude ../../Makefile.targ 204