17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5c56c1e58Sgirish# Common Development and Distribution License (the "License"). 6c56c1e58Sgirish# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate 22927a453eSwentaoy# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# uts/sun4v/sys/Makefile 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# include global definitions 307c478bd9Sstevel@tonic-gateUTSBASE = ../.. 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate# 337c478bd9Sstevel@tonic-gate# include global definitions 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gateinclude ../Makefile.sun4v 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate# 387c478bd9Sstevel@tonic-gate# Override defaults. 397c478bd9Sstevel@tonic-gate# 407c478bd9Sstevel@tonic-gateFILEMODE = 644 417c478bd9Sstevel@tonic-gateGROUP = bin 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateSUN4_HDRS= \ 447c478bd9Sstevel@tonic-gate clock.h \ 457c478bd9Sstevel@tonic-gate cmp.h \ 467c478bd9Sstevel@tonic-gate cpc_ultra.h \ 477c478bd9Sstevel@tonic-gate cpu_sgnblk_defs.h \ 487c478bd9Sstevel@tonic-gate ddi_subrdefs.h \ 497c478bd9Sstevel@tonic-gate dvma.h \ 507c478bd9Sstevel@tonic-gate eeprom.h \ 517c478bd9Sstevel@tonic-gate fcode.h \ 527c478bd9Sstevel@tonic-gate idprom.h \ 537c478bd9Sstevel@tonic-gate intr.h \ 547c478bd9Sstevel@tonic-gate intreg.h \ 557c478bd9Sstevel@tonic-gate ivintr.h \ 567c478bd9Sstevel@tonic-gate memlist_plat.h \ 577c478bd9Sstevel@tonic-gate memnode.h \ 587c478bd9Sstevel@tonic-gate nexusdebug.h \ 597c478bd9Sstevel@tonic-gate prom_debug.h \ 607c478bd9Sstevel@tonic-gate scb.h \ 617c478bd9Sstevel@tonic-gate sun4asi.h \ 627c478bd9Sstevel@tonic-gate tod.h \ 637c478bd9Sstevel@tonic-gate trapstat.h \ 647c478bd9Sstevel@tonic-gate vis.h \ 657c478bd9Sstevel@tonic-gate vm_machparam.h \ 667c478bd9Sstevel@tonic-gate x_call.h \ 677c478bd9Sstevel@tonic-gate xc_impl.h \ 687c478bd9Sstevel@tonic-gate zsmach.h 697c478bd9Sstevel@tonic-gate 70fb9f9b97SkupferCLOSED_SUN4_HDRS= \ 71fb9f9b97Skupfer memtestio.h 72fb9f9b97Skupfer 737c478bd9Sstevel@tonic-gateHDRS= \ 74ef884685Srb144127 ds_pri.h \ 757c478bd9Sstevel@tonic-gate hypervisor_api.h \ 76c56c1e58Sgirish hsvc.h \ 777c478bd9Sstevel@tonic-gate machasi.h \ 787c478bd9Sstevel@tonic-gate machclock.h \ 797c478bd9Sstevel@tonic-gate machcpuvar.h \ 807c478bd9Sstevel@tonic-gate mach_descrip.h \ 817c478bd9Sstevel@tonic-gate machintreg.h \ 827c478bd9Sstevel@tonic-gate machparam.h \ 837c478bd9Sstevel@tonic-gate machsystm.h \ 847c478bd9Sstevel@tonic-gate machthread.h \ 857c478bd9Sstevel@tonic-gate mmu.h \ 867c478bd9Sstevel@tonic-gate niagaraasi.h \ 877c478bd9Sstevel@tonic-gate niagararegs.h \ 88927a453eSwentaoy ntwdt.h \ 897c478bd9Sstevel@tonic-gate pte.h \ 907c478bd9Sstevel@tonic-gate prom_plat.h \ 917c478bd9Sstevel@tonic-gate qcn.h \ 923b890a5bSjb145095 soft_state.h \ 937c478bd9Sstevel@tonic-gate traptrace.h 947c478bd9Sstevel@tonic-gate 95fb9f9b97SkupferCLOSED_HDRS= \ 96fb9f9b97Skupfer memtestio_ni.h \ 9714ea4bb7Ssd77468 memtestio_n2.h \ 98fb9f9b97Skupfer memtestio_v.h 99fb9f9b97Skupfer 1007c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(USR_PSM_ISYS_DIR)/%) 101fb9f9b97Skupfer$(CLOSED_BUILD)ROOTHDRS += $(CLOSED_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 102fb9f9b97Skupfer 1037c478bd9Sstevel@tonic-gateSUN4_ROOTHDRS= $(SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 104fb9f9b97Skupfer$(CLOSED_BUILD)SUN4_ROOTHDRS += $(CLOSED_SUN4_HDRS:%=$(USR_PSM_ISYS_DIR)/%) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gateROOTDIR= $(ROOT)/usr/share/src 1077c478bd9Sstevel@tonic-gateROOTDIRS= $(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateROOTLINK= $(ROOTDIR)/uts/$(PLATFORM)/sys 1107c478bd9Sstevel@tonic-gateLINKDEST= ../../../../platform/$(PLATFORM)/include/sys 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check) \ 113*6f45ec7bSml29623 $(SUN4_HDRS:%.h=%.cmncheck) 11444961713Sgirish 115fb9f9b97Skupfer$(CLOSED_BUILD)CHECKHDRS += \ 116fb9f9b97Skupfer $(CLOSED_HDRS:%.h=%.check) \ 117fb9f9b97Skupfer $(CLOSED_SUN4_HDRS:%.h=%.cmncheck) 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate.KEEP_STATE: 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(SUN4_ROOTHDRS) 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gateinstall_h: $(ROOTDIRS) .WAIT \ 1247c478bd9Sstevel@tonic-gate $(ROOTHDRS) .WAIT \ 1257c478bd9Sstevel@tonic-gate $(SUN4_ROOTHDRS) .WAIT $(ROOTLINK) 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 1287c478bd9Sstevel@tonic-gate 1297c478bd9Sstevel@tonic-gate# 1307c478bd9Sstevel@tonic-gate# install rules 1317c478bd9Sstevel@tonic-gate# 1327c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sfmmu/sys/% $(USR_PSM_ISYS_DIR) 1337c478bd9Sstevel@tonic-gate $(INS.file) 1347c478bd9Sstevel@tonic-gate 1357c478bd9Sstevel@tonic-gate$(USR_PSM_ISYS_DIR)/%: ../../sun4/sys/% $(USR_PSM_ISYS_DIR) 1367c478bd9Sstevel@tonic-gate $(INS.file) 1377c478bd9Sstevel@tonic-gate 138fb9f9b97Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4/sys/% $(USR_PSM_ISYS_DIR) 139fb9f9b97Skupfer $(INS.file) 140fb9f9b97Skupfer 141fb9f9b97Skupfer$(USR_PSM_ISYS_DIR)/%: $(CLOSED)/uts/sun4v/sys/% $(USR_PSM_ISYS_DIR) 142fb9f9b97Skupfer $(INS.file) 143fb9f9b97Skupfer 1447c478bd9Sstevel@tonic-gate$(ROOTDIRS): 1457c478bd9Sstevel@tonic-gate $(INS.dir.root.bin) 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gate# -r because this used to be a directory and is now a link. 1487c478bd9Sstevel@tonic-gate$(ROOTLINK): $(ROOTDIRS) 1497c478bd9Sstevel@tonic-gate -$(RM) -r $@; $(SYMLINK) $(LINKDEST) $@ $(CHOWNLINK) $(CHGRPLINK) 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gatemon/%.check: mon/%.h 1527c478bd9Sstevel@tonic-gate $(DOT_H_CHECK) 1537c478bd9Sstevel@tonic-gate 1547c478bd9Sstevel@tonic-gate%.check: ../../sfmmu/sys/%.h 1557c478bd9Sstevel@tonic-gate $(DOT_H_CHECK) 156fb9f9b97Skupfer%.check: $(CLOSED)/uts/sun4v/sys/%.h 157fb9f9b97Skupfer $(DOT_H_CHECK) 1587c478bd9Sstevel@tonic-gate%.cmncheck: ../../sun4/sys/%.h 1597c478bd9Sstevel@tonic-gate $(DOT_H_CHECK) 160fb9f9b97Skupfer%.cmncheck: $(CLOSED)/uts/sun4/sys/%.h 161fb9f9b97Skupfer $(DOT_H_CHECK) 1627c478bd9Sstevel@tonic-gate 1637c478bd9Sstevel@tonic-gateFRC: 1647c478bd9Sstevel@tonic-gate 1657c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 166