Makefile revision 3d19cdae966d9ac4218dd9859640463bd7da19d8
342N/A#
342N/A# CDDL HEADER START
342N/A#
342N/A# The contents of this file are subject to the terms of the
342N/A# Common Development and Distribution License (the "License").
342N/A# You may not use this file except in compliance with the License.
342N/A#
342N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
342N/A# or http://www.opensolaris.org/os/licensing.
342N/A# See the License for the specific language governing permissions
342N/A# and limitations under the License.
342N/A#
342N/A# When distributing Covered Code, include this CDDL HEADER in each
342N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
342N/A# If applicable, add the following below this CDDL HEADER, with the
342N/A# fields enclosed by brackets "[]" replaced with your own identifying
342N/A# information: Portions Copyright [yyyy] [name of copyright owner]
342N/A#
342N/A# CDDL HEADER END
342N/A#
342N/A
342N/A#
342N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
342N/A# Use is subject to license terms.
342N/A#
342N/A#ident "%Z%%M% %I% %E% SMI"
342N/A#
342N/A# include global definitions
350N/Ainclude ../../../Makefile.master
342N/A
526N/A# NOTE: pm.h is not shipped. It should be shipped when power management
342N/A# is a real feature of Solaris.
342N/A
342N/AHDRS= \
342N/Aaflt.h \
342N/Aavintr.h \
342N/Abmac.h \
342N/Abootconf.h bpp_reg.h \
342N/Abpp_var.h \
342N/Abw2reg.h bw2var.h \
342N/Acg3var.h \
342N/Acg6fbc.h cg6reg.h cg6tec.h \
342N/Acg6thc.h cg6var.h \
342N/Acms.h cursor_impl.h \
342N/Adkmpio.h dmaga.h \
342N/Aeri.h eri_common.h eri_mac.h \
342N/Aeri_msg.h eri_phy.h \
342N/Afdreg.h fdvar.h \
342N/Ahme.h hme_mac.h \
342N/Ahme_phy.h i82586.h \
342N/Aisdnio.h \
342N/Amace.h \
342N/Amemfb.h memreg.h memvar.h \
342N/Aobpdefs.h pixrect.h \
342N/Apr_impl_util.h pr_planegroups.h \
342N/Apromif.h promimpl.h \
342N/Aramdac.h ser_async.h ser_zscc.h \
342N/Asocalio.h socalreg.h \
342N/Asocal_cq_defs.h socalmap.h socalvar.h \
342N/Astp4020_reg.h stp4020_var.h \
342N/Attymux.h ttymuxuser.h \
342N/Azsdev.h
342N/A
342N/AAUDIOHDRS= \
342N/Aaudio_4231.h \
342N/Aaudio1575.h
342N/A
342N/ASCSIADHDRS= \
342N/Aespcmd.h espreg.h espvar.h fascmd.h fasdma.h \
342N/Afasreg.h fasvar.h ifpio.h sfvar.h
342N/A
342N/ACLOSED_SCSIAD = $(CLOSED)/uts/sun/sys/scsi/adapters
342N/A
342N/ACLOSED_SCSIADHDRS= \
342N/Aifpcmd.h ifpmail.h ifpreg.h ifpvar.h \
342N/Aispcmd.h ispmail.h ispreg.h ispvar.h
342N/A
342N/ASCSITARGHDRS= \
342N/A
342N/AROOTDIR= $(ROOT)/usr/include/sys
342N/AROOTDIRS= $(ROOTDIR) \
342N/A $(ROOTDIR)/audio \
342N/A $(ROOTDIR)/scsi/adapters \
342N/A $(ROOTDIR)/scsi/targets
342N/A
342N/AROOTHDRS= $(HDRS:%=$(ROOTDIR)/%)
342N/A$(CLOSED_BUILD)ROOTHDRS += $(CLOSED_HDRS:%=$(ROOTDIR)/%)
342N/AROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
342N/AROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
342N/AROOTSCSIADHDRS= $(SCSIADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
342N/A$(CLOSED_BUILD)ROOTSCSIADHDRS += \
342N/A $(CLOSED_SCSIADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
342N/AROOTSCSITARGHDRS= $(SCSITARGHDRS:%=$(ROOTDIR)/scsi/targets/%)
342N/A
342N/A
342N/A# install rules
342N/A$(ROOTDIR)/%: %
342N/A $(INS.file)
342N/A
342N/A$(ROOTDIR)/%: $(CLOSED)/uts/sun/sys/%
342N/A $(INS.file)
342N/A
342N/A$(ROOTDIR)/audio/%: audio/%
342N/A $(INS.file)
342N/A
342N/A$(ROOTDIR)/scsi/adapters/%: scsi/adapters/%
342N/A $(INS.file)
342N/A
342N/A$(ROOTDIR)/scsi/adapters/%: $(CLOSED_SCSIAD)/%
342N/A $(INS.file)
342N/A
342N/A$(ROOTDIR)/scsi/targets/%: scsi/targets/%
342N/A $(INS.file)
342N/A
342N/A# check files really don't exist
342N/A
342N/Aaudio/%.check: audio/%.h
342N/A $(DOT_H_CHECK)
342N/A
342N/Ascsi/adapters/%.check: scsi/adapters/%.h
342N/A $(DOT_H_CHECK)
342N/A
342N/Ascsi/targets/%.check: scsi/targets/%.h
342N/A $(DOT_H_CHECK)
342N/A
342N/ACHECKHDRS= \
342N/A $(HDRS:%.h=%.check) \
342N/A $(AUDIOHDRS:%.h=audio/%.check) \
342N/A $(FCHDRS:%.h=fc4/%.check) \
342N/A $(SCSIADHDRS:%.h=scsi/adapters/%.check) \
342N/A $(SCSITARGHDRS:%.h=scsi/targets/%.check)
342N/A
342N/A$(CLOSED_BUILD)CHECKHDRS += \
342N/A $(CLOSED_HDRS:%.h=$(CLOSED)/uts/sun/sys/%.check) \
342N/A $(CLOSED_SCSIADHDRS:%.h=$(CLOSED_SCSIAD)/%.check)
342N/A
342N/A# headers which won't quite meet the standards...
342N/A#
342N/A# devops.h has a macro where the formal parameters to the macro are greater
342N/A# than 80 characters. cpp (or the equivalent built into acomp) does not allow
342N/A# continuation line breaks in the formal parameter list. This could be fixed
342N/A# by giving shorter names to the formal parameters, but the right fix is to
342N/A# fix cpp. (Also, /* CSTYLED */ doesn't seem to fix this.
342N/A#
342N/Adevops.check := CSTYLE_TAIL = | grep -v "line > 80 characters" | true
342N/A
342N/A.KEEP_STATE:
342N/A
342N/A.PARALLEL: $(CHECKHDRS) $(ROOTHDRS) $(ROOTAUDHDRS) $(ROOTAUDIMPLHDRS) \
342N/A $(ROOTSCSIADHDRS) $(ROOTSCSITARGHDRS) $(ROOTXHDRS) \
342N/A $(ROOTFCHDRS)
342N/A
342N/Ainstall_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) \
342N/A $(ROOTAUDHDRS) $(ROOTAUDIMPLHDRS) \
342N/A $(ROOTSCSIADHDRS) $(ROOTSCSITARGHDRS) $(ROOTFCHDRS)
342N/A
342N/A$(ROOTDIRS):
342N/A $(INS.dir)
342N/A
342N/Acheck: $(CHECKHDRS)
342N/A