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