xref: /illumos-gate/usr/src/uts/intel/ia32/sys/Makefile (revision f0089e39)
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
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# 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#
223afb2a2aSJohn Levon#
23ae115bc7Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
26*f0089e39SRichard Lowe
277c478bd9Sstevel@tonic-gate# include global definitions
287c478bd9Sstevel@tonic-gateinclude ../../../../Makefile.master
297c478bd9Sstevel@tonic-gate
30*f0089e39SRichard LoweHDRS=			\
313afb2a2aSJohn Levon	kdi_regs.h	\
323afb2a2aSJohn Levon	privmregs.h	\
33*f0089e39SRichard Lowe	privregs.h
34*f0089e39SRichard Lowe
35*f0089e39SRichard LoweLINKS=			\
36*f0089e39SRichard Lowe	asm_linkage.h	\
37*f0089e39SRichard Lowe	machtypes.h	\
387c478bd9Sstevel@tonic-gate	psw.h		\
397c478bd9Sstevel@tonic-gate	pte.h		\
407c478bd9Sstevel@tonic-gate	reg.h		\
417c478bd9Sstevel@tonic-gate	stack.h		\
427c478bd9Sstevel@tonic-gate	trap.h		\
437c478bd9Sstevel@tonic-gate	traptrace.h
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateROOTINCISA= $(ROOT)/usr/include/ia32
467c478bd9Sstevel@tonic-gateROOTDIR= $(ROOTINCISA)/sys
477c478bd9Sstevel@tonic-gateROOTDIRS= $(ROOTDIR)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
50*f0089e39SRichard LoweROOTLINKS= $(LINKS:%=$(ROOTDIR)/%)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateCHECKHDRS= $(HDRS:%.h=%.check)
537c478bd9Sstevel@tonic-gate
54*f0089e39SRichard Lowe$(ROOTDIR)/asm_linkage.h	:= LINK_TARGET = ../../sys/asm_linkage.h
55*f0089e39SRichard Lowe$(ROOTDIR)/machtypes.h		:= LINK_TARGET = ../../sys/machtypes.h
56*f0089e39SRichard Lowe$(ROOTDIR)/psw.h		:= LINK_TARGET = ../../sys/psw.h
57*f0089e39SRichard Lowe$(ROOTDIR)/pte.h		:= LINK_TARGET = ../../sys/pte.h
58*f0089e39SRichard Lowe$(ROOTDIR)/reg.h		:= LINK_TARGET = ../../sys/reg.h
59*f0089e39SRichard Lowe$(ROOTDIR)/stack.h		:= LINK_TARGET = ../../sys/stack.h
60*f0089e39SRichard Lowe$(ROOTDIR)/trap.h		:= LINK_TARGET = ../../sys/trap.h
61*f0089e39SRichard Lowe$(ROOTDIR)/traptrace.h		:= LINK_TARGET = ../../sys/traptrace.h
62*f0089e39SRichard Lowe
637c478bd9Sstevel@tonic-gate# install rules
647c478bd9Sstevel@tonic-gate$(ROOTDIR)/%: %
657c478bd9Sstevel@tonic-gate	$(INS.file)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate.KEEP_STATE:
687c478bd9Sstevel@tonic-gate
69*f0089e39SRichard Lowe.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTLINKS)
707c478bd9Sstevel@tonic-gate
71*f0089e39SRichard Loweinstall_h: $(ROOTINCISA) .WAIT $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINKS)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate$(ROOTINCISA):
747c478bd9Sstevel@tonic-gate	$(INS.dir)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate$(ROOTDIRS):	$(ROOTINCISA)
777c478bd9Sstevel@tonic-gate	$(INS.dir)
787c478bd9Sstevel@tonic-gate
79*f0089e39SRichard Lowe$(ROOTLINKS):
80*f0089e39SRichard Lowe	$(RM) $@; $(SYMLINK) $(LINK_TARGET) $@
81*f0089e39SRichard Lowe
827c478bd9Sstevel@tonic-gatecheck:	$(CHECKHDRS)
83