Home | History | Annotate | Download | only in sys
      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 (the "License").
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15 # If applicable, add the following below this CDDL HEADER, with the
     16 # fields enclosed by brackets "[]" replaced with your own identifying
     17 # information: Portions Copyright [yyyy] [name of copyright owner]
     18 #
     19 # CDDL HEADER END
     20 #
     21 #
     22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 # uts/sun4u/opl/sys/Makefile
     26 #
     27 
     28 
     29 UTSBASE	= ../../..
     30 
     31 #
     32 # include global definitions
     33 #
     34 include ../Makefile.opl
     35 
     36 #
     37 # Override defaults.
     38 #
     39 FILEMODE	 = 644
     40 
     41 HDRS=		opl_hwdesc.h
     42 
     43 CHKHDRS=	dm2s.h		\
     44 		drmach.h	\
     45 		fiomp.h		\
     46 		mc-opl.h	\
     47 		oplkm.h		\
     48 		oplkm_msg.h
     49 
     50 OPLMSUHDRS=	oplmsu.h	\
     51 		oplmsu_proto.h
     52 
     53 PCICMUHDRS=	pcicmu.h	\
     54 		pcmu_cb.h	\
     55 		pcmu_counters.h	\
     56 		pcmu_ecc.h	\
     57 		pcmu_err.h	\
     58 		pcmu_ib.h	\
     59 		pcmu_pbm.h	\
     60 		pcmu_types.h	\
     61 		pcmu_util.h
     62 
     63 SCFDHDRS=	opcioif.h	\
     64 		scfdscpif.h	\
     65 		scfostoescf.h
     66 
     67 NGDRHDRS=	$(UTSBASE)/sun4u/ngdr/sys/dr.h \
     68 		$(UTSBASE)/sun4u/ngdr/sys/dr_util.h
     69 
     70 ROOTHDRS=	$(HDRS:%=$(USR_OPL_ISYS_DIR)/%)
     71 
     72 ROOTDIR=	$(ROOT)/usr/share/src
     73 ROOTDIRS=	$(ROOTDIR)/uts $(ROOTDIR)/uts/$(PLATFORM)
     74 
     75 CHECKHDRS=	$(HDRS:%.h=%.check) \
     76 		$(CHKHDRS:%.h=%.check) \
     77 		$(OPLMSUHDRS:%.h=oplmsu/%.check) \
     78 		$(PCICMUHDRS:%.h=pcicmu/%.check) \
     79 		$(SCFDHDRS:%.h=scfd/%.check) \
     80 		$(NGDRHDRS:%.h=%.check)
     81 
     82 .KEEP_STATE:
     83 
     84 .PARALLEL: $(CHECKHDRS) $(ROOTHDRS)
     85 
     86 install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(ROOTLINK)
     87 
     88 check:	$(CHECKHDRS)
     89 
     90 #
     91 # install rules
     92 #
     93 $(USR_OPL_ISYS_DIR)/%:	% $(USR_OPL_ISYS_DIR)
     94 	$(INS.file)
     95 
     96 FRC:
     97 
     98 include ../Makefile.targ
     99