Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
FILEMODE=644
#
# Note that the following headers are present in the kernel but
# neither installed or shipped as part of the product:
# cpuid_drv.h: Private interface for cpuid consumers
# unix_bb_info.h: Private interface to kcov
#
i386_HDRS= \
asy.h \
fdc.h \
mse.h \
AVHDRS= \
sparc_HDRS= \
$(MDESCHDRS) \
$(AVHDRS)
# Generated headers
GENHDRS= \
CHKHDRS= \
acct.h \
acl.h \
aggr.h \
aio.h \
aiocb.h \
ascii.h \
atomic.h \
audio.h \
auxv.h \
avl.h \
bitmap.h \
bl.h \
bofi.h \
bpp_io.h \
buf.h \
bufmod.h \
callb.h \
callo.h \
cdio.h \
chip.h \
cladm.h \
class.h \
clconf.h \
conf.h \
core.h \
cpr.h \
cpuvar.h \
crc32.h \
cred.h \
crtctl.h \
ctf.h \
ctfs.h \
ctype.h \
cyclic.h \
dacf.h \
dc_ki.h \
ddi.h \
ddifm.h \
debug.h \
des.h \
devctl.h \
devops.h \
dirent.h \
disp.h \
dkbad.h \
dkio.h \
dl.h \
dlpi.h \
dld.h \
dls.h \
dnlc.h \
door.h \
dtrace.h \
ecppio.h \
elf.h \
epm.h \
errno.h \
errorq.h \
euc.h \
exacct.h \
exec.h \
fault.h \
fbio.h \
fbuf.h \
fcntl.h \
fdio.h \
fem.h \
file.h \
filio.h \
flock.h \
fss.h \
fsid.h \
fssnap.h \
fstyp.h \
ftrace.h \
fx.h \
gfs.h \
ght.h \
gld.h \
hdio.h \
hwconf.h \
ia.h \
id32.h \
ieeefp.h \
ioccom.h \
ioctl.h \
ioreq.h \
ipc.h \
jioctl.h \
kbd.h \
kbdreg.h \
kbio.h \
kcpc.h \
kdi.h \
klwp.h \
kmdb.h \
kmem.h \
kobj.h \
kstat.h \
kstr.h \
ksyms.h \
ksynch.h \
ldterm.h \
lgrp.h \
link.h \
list.h \
llc1.h \
llc2.h \
lock.h \
lockfs.h \
lofi.h \
log.h \
lwp.h \
mac.h \
map.h \
md5.h \
mem.h \
mkdev.h \
mhd.h \
mixer.h \
mman.h \
mntent.h \
mntio.h \
mnttab.h \
modctl.h \
mode.h \
model.h \
mount.h \
msacct.h \
msg.h \
msio.h \
msreg.h \
mtio.h \
mutex.h \
ndifm.h \
note.h \
nvpair.h \
objfs.h \
ontrap.h \
open.h \
panic.h \
param.h \
pattr.h \
pbio.h \
pccard.h \
pci.h \
pcmcia.h \
pem.h \
pfmod.h \
phx.h \
pm.h \
policy.h \
poll.h \
pool.h \
port.h \
ppmio.h \
priv.h \
prnio.h \
proc.h \
procfs.h \
pset.h \
pshot.h \
ptem.h \
ptms.h \
ptyvar.h \
random.h \
rctl.h \
reboot.h \
refstr.h \
rt.h \
rwlock.h \
sad.h \
sdt.h \
select.h \
sem.h \
sha1.h \
sha2.h \
share.h \
shm.h \
signal.h \
sleepq.h \
socket.h \
sockio.h \
squeue.h \
stat.h \
statfs.h \
stdint.h \
stream.h \
strft.h \
strlog.h \
strsun.h \
strtty.h \
sunddi.h \
sunldi.h \
sunmdi.h \
sunndi.h \
sunpm.h \
suntpi.h \
suntty.h \
swap.h \
synch.h \
syslog.h \
systm.h \
task.h \
taskq.h \
t_lock.h \
termio.h \
thread.h \
ticlts.h \
ticots.h \
tihdr.h \
time.h \
timeb.h \
timer.h \
times.h \
timex.h \
timod.h \
tirdwr.h \
tiuser.h \
tl.h \
tnf.h \
todio.h \
ts.h \
ttold.h \
tty.h \
ttydev.h \
types.h \
uadmin.h \
ucred.h \
uio.h \
ulimit.h \
un.h \
unistd.h \
user.h \
ustat.h \
utime.h \
utssys.h \
uuid.h \
var.h \
vfs.h \
vfstab.h \
vgareg.h \
vm.h \
vmem.h \
vnode.h \
vol.h \
vtoc.h \
vtrace.h \
wait.h \
zcons.h \
zone.h \
HDRS= \
$(GENHDRS) \
$(CHKHDRS)
AUDIOHDRS= \
ac97.h \
BSCHDRS= \
bscbus.h \
lom_io.h \
MDESCHDRS= \
mdesc.h \
CRYPTOHDRS= \
ioctl.h \
common.h \
impl.h \
spi.h \
api.h \
IBHDRS= \
IBTLHDRS= \
ibti.h \
ibci.h \
ibvti.h \
IBTLIMPLHDRS= \
IBNEXHDRS= \
IBMFHDRS= \
ibmf.h \
IBMGTHDRS= \
ib_mad.h \
IBDHDRS= \
TAVORHDRS= \
ISOHDRS= \
mdmed.h \
LVMHDRS= \
md_crc.h \
md_sp.h \
mdio.h \
ALL_LVMHDRS= \
$(LVMHDRS) \
FMHDRS= \
FMIOHDRS= \
ddi.h \
pci.h \
FSHDRS= \
autofs.h \
pc_dir.h \
pc_fs.h \
snode.h \
tmp.h \
ufs_fs.h \
PCMCIAHDRS= \
pcata.h \
pcelx.h \
pcgld.h \
SCSIHDRS= \
scsi.h \
SCSICONFHDRS= \
SCSIGENHDRS= \
mode.h \
sense.h \
SCSIIMPLHDRS= \
mode.h \
sense.h \
status.h \
types.h \
ses.h \
sesio.h \
stdef.h \
sddef.h \
SCSICADHDRS= \
glmreg.h \
glmvar.h \
mptreg.h \
SCSIVHCIHDRS= \
FCHDRS= \
fc.h \
fcp.h \
fcal.h \
SYSEVENTHDRS= \
dev.h \
domain.h \
dr.h \
env.h \
ipmp.h \
CONTRACTHDRS= \
USBHDRS= \
usba.h \
USBAUDHDRS= \
USBHUBDHDRS= \
hub.h \
USBHIDHDRS= \
USBMSHDRS= \
USBPRNHDRS= \
UGENHDRS= \
HOTPLUGHDRS= \
hpcsvc.h \
pcicfg.h \
RSMHDRS= \
rsm.h \
rsmpi.h \
I1394HDRS= \
id1394.h \
# "cmdk" headers used on sparc
SDKTPHDRS= \
dadkio.h \
# "cmdk" headers used on i386
DKTPHDRS= \
bbh.h \
cm.h \
cmdev.h \
cmdk.h \
cmpkt.h \
dadev.h \
dadk.h \
dadkio.h \
dklb.h \
fdisk.h \
gda.h \
hba.h \
objmgr.h \
queue.h \
snlb.h \
tgcom.h \
# "pc" header files used on i386
PCHDRS= \
avintr.h \
i8272A.h \
pic.h \
pit.h \
# I2O header files (currently used only on i386)
I2OHDRS= \
i2omsg.h \
# SVVS headers and other excluded headers
XHDRS= \
lo.h \
tidg.h \
tivc.h \
# check files really don't exist
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
$(DOT_H_CHECK)
CHECKHDRS= \
$(CRYPTOHDRS:%.h=crypto/%.check) \
$(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check) \
$(PCMCIAHDRS:%.h=pcmcia/%.check) \
$(SCSICONHDRS:%.h=scsi/conf/%.check) \
$(SCSIIMPLHDRS:%.h=scsi/impl/%.check) \
$(SCSITARGETSHDRS:%.h=scsi/targets/%.check) \
$(SCSIVHCIHDRS:%.h=scsi/adapters/%.check) \
$(SYSEVENTHDRS:%.h=sysevent/%.check) \
$(CONTRACTHDRS:%.h=contract/%.check) \
$(USBAUDHDRS:%.h=usb/clients/audio/%.check) \
$(USBHUBDHDRS:%.h=usb/hubd/%.check) \
$(USBHIDHDRS:%.h=usb/clients/hid/%.check) \
$(USBMSHDRS:%.h=usb/clients/mass_storage/%.check) \
$(USBPRNHDRS:%.h=usb/clients/printer/%.check) \
ROOTDIRS= \
$(ROOTDIR) \
$(ROOTDIR)/1394 \
ROOTHDRS= \
$(ROOTUSBAUDHDRS) \
$(ROOTUGENHDRS)
$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS) \
# install rules
$(ROOTDIR)/%: %
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
$(INS.file)
.PARALLEL: \
$(CHECKHDRS) \
$(ROOTHDRS) \
$(ROOTAUDHDRS) \
$(ROOTCRYPTOHDRS) \
$(ROOTISOHDRS) \
$(ROOTFMHDRS) \
$(ROOTFMCPUHDRS) \
$(ROOTFMIOHDRS) \
$(ROOTFSHDRS) \
$(ROOTIBDHDRS) \
$(ROOTIBHDRS) \
$(ROOTIBTLHDRS) \
$(ROOTIBTLIMPLHDRS) \
$(ROOTIBNEXHDRS) \
$(ROOTIBMGTHDRS) \
$(ROOTIBMFHDRS) \
$(ROOTTAVORHDRS) \
$(ROOTLVMHDRS) \
$(ROOTPCMCIAHDRS) \
$(ROOTSCSIHDRS) \
$(ROOTSCSIC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AKE) install_X_h; \
else \
true; \
fi
install_X_h: $(ROOTXHDRS)
$(ROOTDIRS):
$(INS.dir)
FRC:
# EXPORT DELETE START
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
# EXPORT DELETE END