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# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27# 28# include global definitions 29include ../../../Makefile.master 30 31# NOTE: pm.h is not shipped. It should be shipped when power management 32# is a real feature of Solaris. 33 34HDRS= \ 35aflt.h \ 36avintr.h \ 37bmac.h \ 38bootconf.h bpp_reg.h \ 39bpp_var.h \ 40bw2reg.h bw2var.h \ 41cg3var.h \ 42cg6fbc.h cg6reg.h cg6tec.h \ 43cg6thc.h cg6var.h \ 44cms.h cursor_impl.h dbriio.h \ 45dkmpio.h dmaga.h \ 46eri.h eri_common.h eri_mac.h \ 47eri_msg.h eri_phy.h \ 48fdreg.h fdvar.h \ 49hme.h hme_mac.h \ 50hme_phy.h i82586.h \ 51isdnio.h \ 52mace.h \ 53memfb.h memreg.h memvar.h \ 54mmcodecreg.h \ 55obpdefs.h pixrect.h \ 56pr_impl_util.h pr_planegroups.h \ 57promif.h promimpl.h \ 58ramdac.h ser_async.h ser_zscc.h \ 59socalvar.h socalreg.h socalmap.h \ 60socalio.h socal_cq_defs.h \ 61stp4020_reg.h stp4020_var.h \ 62ttymux.h ttymuxuser.h \ 63zsdev.h 64 65AUDIOHDRS= \ 66audio_4231.h \ 67audio1575.h 68 69SCSIADHDRS= \ 70espcmd.h espreg.h espvar.h fascmd.h fasdma.h \ 71fasreg.h fasvar.h sfvar.h \ 72ifpcmd.h ifpvar.h ifpio.h ifpmail.h ifpreg.h \ 73ispcmd.h ispmail.h ispreg.h ispvar.h 74 75SCSITARGHDRS= \ 76 77ROOTDIR= $(ROOT)/usr/include/sys 78ROOTDIRS= $(ROOTDIR) \ 79 $(ROOTDIR)/audio \ 80 $(ROOTDIR)/scsi/adapters \ 81 $(ROOTDIR)/scsi/targets 82 83ROOTHDRS= $(HDRS:%=$(ROOTDIR)/%) 84ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%) 85ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%) 86ROOTSCSIADHDRS= $(SCSIADHDRS:%=$(ROOTDIR)/scsi/adapters/%) 87ROOTSCSITARGHDRS= $(SCSITARGHDRS:%=$(ROOTDIR)/scsi/targets/%) 88 89 90# install rules 91$(ROOTDIR)/%: % 92 $(INS.file) 93 94$(ROOTDIR)/audio/%: audio/% 95 $(INS.file) 96 97$(ROOTDIR)/scsi/adapters/%: scsi/adapters/% 98 $(INS.file) 99 100$(ROOTDIR)/scsi/targets/%: scsi/targets/% 101 $(INS.file) 102 103# check files really don't exist 104 105audio/%.check: audio/%.h 106 $(DOT_H_CHECK) 107 108scsi/adapters/%.check: scsi/adapters/%.h 109 $(DOT_H_CHECK) 110 111scsi/targets/%.check: scsi/targets/%.h 112 $(DOT_H_CHECK) 113 114CHECKHDRS= \ 115 $(HDRS:%.h=%.check) \ 116 $(AUDIOHDRS:%.h=audio/%.check) \ 117 $(FCHDRS:%.h=fc4/%.check) \ 118 $(SCSIADHDRS:%.h=scsi/adapters/%.check) \ 119 $(SCSITARGHDRS:%.h=scsi/targets/%.check) 120 121 122# headers which won't quite meet the standards... 123# 124# devops.h has a macro where the formal parameters to the macro are greater 125# than 80 characters. cpp (or the equivalent built into acomp) does not allow 126# continuation line breaks in the formal parameter list. This could be fixed 127# by giving shorter names to the formal parameters, but the right fix is to 128# fix cpp. (Also, /* CSTYLED */ doesn't seem to fix this. 129# 130devops.check := CSTYLE_TAIL = | grep -v "line > 80 characters" | true 131 132.KEEP_STATE: 133 134.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTAUDHDRS) $(ROOTAUDIMPLHDRS) \ 135 $(ROOTSCSIADHDRS) $(ROOTSCSITARGHDRS) $(ROOTXHDRS) \ 136 $(ROOTFCHDRS) 137 138install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) \ 139 $(ROOTAUDHDRS) $(ROOTAUDIMPLHDRS) \ 140 $(ROOTSCSIADHDRS) $(ROOTSCSITARGHDRS) $(ROOTFCHDRS) 141 142$(ROOTDIRS): 143 $(INS.dir) 144 145check: $(CHECKHDRS) 146