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 51592Sgirish# Common Development and Distribution License (the "License"). 61592Sgirish# 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# 210Sstevel@tonic-gate 2210207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# 260Sstevel@tonic-gate# uts/sun4v/sys/Makefile 270Sstevel@tonic-gate# 280Sstevel@tonic-gate# include global definitions 290Sstevel@tonic-gateUTSBASE = ../.. 300Sstevel@tonic-gate 310Sstevel@tonic-gate# 320Sstevel@tonic-gate# include global definitions 330Sstevel@tonic-gate# 340Sstevel@tonic-gateinclude ../Makefile.sun4v 350Sstevel@tonic-gate 360Sstevel@tonic-gate# 370Sstevel@tonic-gate# Override defaults. 380Sstevel@tonic-gate# 390Sstevel@tonic-gateFILEMODE = 644 400Sstevel@tonic-gate 410Sstevel@tonic-gateSUN4_HDRS= \ 420Sstevel@tonic-gate clock.h \ 430Sstevel@tonic-gate cmp.h \ 440Sstevel@tonic-gate cpc_ultra.h \ 450Sstevel@tonic-gate cpu_sgnblk_defs.h \ 460Sstevel@tonic-gate ddi_subrdefs.h \ 470Sstevel@tonic-gate dvma.h \ 480Sstevel@tonic-gate eeprom.h \ 490Sstevel@tonic-gate fcode.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 681167SkupferCLOSED_SUN4_HDRS= \ 691167Skupfer memtestio.h 701167Skupfer 710Sstevel@tonic-gateHDRS= \ 723530Srb144127 ds_pri.h \ 733941Svenki ds_snmp.h \ 740Sstevel@tonic-gate hypervisor_api.h \ 751592Sgirish hsvc.h \ 760Sstevel@tonic-gate machasi.h \ 770Sstevel@tonic-gate machclock.h \ 780Sstevel@tonic-gate machcpuvar.h \ 790Sstevel@tonic-gate mach_descrip.h \ 800Sstevel@tonic-gate machintreg.h \ 810Sstevel@tonic-gate machparam.h \ 820Sstevel@tonic-gate machsystm.h \ 830Sstevel@tonic-gate machthread.h \ 840Sstevel@tonic-gate mmu.h \ 850Sstevel@tonic-gate niagaraasi.h \ 860Sstevel@tonic-gate niagararegs.h \ 873349Swentaoy ntwdt.h \ 880Sstevel@tonic-gate pte.h \ 890Sstevel@tonic-gate prom_plat.h \ 900Sstevel@tonic-gate qcn.h \ 913266Sjb145095 soft_state.h \ 927697SMichael.Christensen@Sun.COM traptrace.h \ 937697SMichael.Christensen@Sun.COM vlds.h 940Sstevel@tonic-gate 951167SkupferCLOSED_HDRS= \ 96*11325SSean.D.Scott@Sun.COM memtestio_kt.h \ 971167Skupfer memtestio_ni.h \ 983325Ssd77468 memtestio_n2.h \ 994759Ssd77468 memtestio_v.h \ 1004759Ssd77468 memtestio_vf.h 1011167Skupfer 1020Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1031167Skupfer$(CLOSED_BUILD)ROOTHDRS += $(CLOSED_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1041167Skupfer 1050Sstevel@tonic-gateSUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1061167Skupfer$(CLOSED_BUILD)SUN4_ROOTHDRS += $(CLOSED_SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1070Sstevel@tonic-gate 1080Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/share/src 1090Sstevel@tonic-gateROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 1100Sstevel@tonic-gate 1110Sstevel@tonic-gateROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 1120Sstevel@tonic-gateLINKDEST= ../../../../platform/$(PLATFORM)/include/sys 1130Sstevel@tonic-gate 1140Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check) \ 1153859Sml29623 $(SUN4_HDRS:%.h=%.cmncheck) 1163156Sgirish 1171167Skupfer$(CLOSED_BUILD)CHECKHDRS += \ 1181167Skupfer $(CLOSED_HDRS:%.h=%.check) \ 1191167Skupfer $(CLOSED_SUN4_HDRS:%.h=%.cmncheck) 1200Sstevel@tonic-gate 1210Sstevel@tonic-gate.KEEP_STATE: 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(SUN4_ROOTHDRS) 1240Sstevel@tonic-gate 1250Sstevel@tonic-gateinstall_h: $(ROOTDIRS) .WAIT \ 1260Sstevel@tonic-gate $(ROOTHDRS) .WAIT \ 1270Sstevel@tonic-gate $(SUN4_ROOTHDRS) .WAIT $(ROOTLINK) 1280Sstevel@tonic-gate 1290Sstevel@tonic-gatecheck: $(CHECKHDRS) 1300Sstevel@tonic-gate 1310Sstevel@tonic-gate# 1320Sstevel@tonic-gate# install rules 1330Sstevel@tonic-gate# 1340Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR) 1350Sstevel@tonic-gate $(INS.file) 1360Sstevel@tonic-gate 1370Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR) 1380Sstevel@tonic-gate $(INS.file) 1390Sstevel@tonic-gate 1401167Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4/sys/% $(USR_PSM_ISYS_DIR) 1411167Skupfer $(INS.file) 1421167Skupfer 1431167Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4v/sys/% $(USR_PSM_ISYS_DIR) 1441167Skupfer $(INS.file) 1451167Skupfer 1460Sstevel@tonic-gate$(ROOTDIRS): 14710738SJames.McPherson@Sun.COM $(INS.dir) 1480Sstevel@tonic-gate 1490Sstevel@tonic-gate# -r because this used to be a directory and is now a link. 1500Sstevel@tonic-gate$(ROOTLINK): $(ROOTDIRS) 15110207SJames.McPherson@Sun.COM -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ 1520Sstevel@tonic-gate 1530Sstevel@tonic-gatemon/%.check: mon/%.h 1540Sstevel@tonic-gate $(DOT_H_CHECK) 1550Sstevel@tonic-gate 1560Sstevel@tonic-gate%.check: ../../sfmmu/sys/%.h 1570Sstevel@tonic-gate $(DOT_H_CHECK) 1581167Skupfer%.check: $(CLOSED)/uts/sun4v/sys/%.h 1591167Skupfer $(DOT_H_CHECK) 1600Sstevel@tonic-gate%.cmncheck: ../../sun4/sys/%.h 1610Sstevel@tonic-gate $(DOT_H_CHECK) 1621167Skupfer%.cmncheck: $(CLOSED)/uts/sun4/sys/%.h 1631167Skupfer $(DOT_H_CHECK) 1640Sstevel@tonic-gate 1650Sstevel@tonic-gateFRC: 1660Sstevel@tonic-gate 1670Sstevel@tonic-gateinclude ../../Makefile.targ 168