Home | History | Annotate | Download | only in headers
      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 src/sun_nws/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 src/sun_nws/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	"@(#)Makefile	1.6	05/09/23 SMI"
     27 #
     28 # src/sun_nws/headers/Makefile
     29 #
     30 
     31 include ../Makefile.config
     32 
     33 STAGING32	 = $(PROTO_ROOT)/usr/include/sys
     34 FIBRE_CH 	 = $(STAGING32)/fibre-channel
     35 
     36 COMMON_FC_H	 = common/fc
     37 COMMON_IMPL_H	 = fc
     38 
     39 FC_FILES   = $(COMMON_FC_H)/fc.h
     40 FC_FILES  += $(COMMON_FC_H)/fc_types.h
     41 FC_FILES  += $(COMMON_FC_H)/fc_error.h
     42 FC_FILES  += $(COMMON_FC_H)/fc_fla.h
     43 FC_FILES  += $(COMMON_FC_H)/fc_linkapp.h
     44 FC_FILES  += $(COMMON_FC_H)/fcal.h
     45 FC_FILES  += $(COMMON_FC_H)/fcgs2.h
     46 FC_FILES  += $(COMMON_FC_H)/fcph.h
     47 FC_FILES  += $(COMMON_FC_H)/fcp.h
     48 
     49 FC_IMPL_FILES   = $(COMMON_IMPL_H)/fc_appif.h
     50 FC_IMPL_FILES  += $(COMMON_IMPL_H)/fcio.h
     51 FC_IMPL_FILES  += $(COMMON_IMPL_H)/fc_fcaif.h
     52 FC_IMPL_FILES  += $(COMMON_IMPL_H)/fc_ulpif.h
     53 FC_IMPL_FILES  += $(COMMON_IMPL_H)/fctl.h
     54 FC_IMPL_FILES  += $(COMMON_IMPL_H)/fcp_util.h
     55 
     56 MODULE_PKGS	 =
     57 
     58 # Handle creating our directories when needed
     59 DIRS		+= $(FIBRE_CH)
     60 
     61 ALLPREQ 	 =
     62 
     63 INSTALLPREQ      = $(FIBRE_CH)
     64 INSTALLPREQ     += .WAIT
     65 INSTALLPREQ	+= $(FC_FILES:$(COMMON_FC_H)/%=$(FIBRE_CH)/%)
     66 INSTALLPREQ	+= $(FC_IMPL_FILES:$(COMMON_IMPL_H)/%=$(FIBRE_CH)/%)
     67 INSTALLPREQ	+= .WAIT
     68 
     69 PKGPREQ		 = install
     70 PKGPREQ		+= .WAIT
     71 PKGPREQ         += $(PKGAREA)
     72 PKGPREQ         += $(MODULE_PKGS:%=$(PKGAREA)/%)
     73 
     74 CLEANFILES  	 = nothing
     75 
     76 CLOBBERFILES     = nothing
     77 
     78 NUKEFILES	 = $(FC_FILES:$(COMMON_FC_H)/%=$(FIBRE_CH)/%)
     79 NUKEFILES	+= $(FC_IMPL_FILES:$(COMMON_IMPL_H)/%=$(FIBRE_CH)/%)
     80 NUKEFILES	+= $(MODULE_PKGS:%=$(PKGAREA)/%)
     81 NUKEFILES	+= $(MODULE_PKGS:%=$(PKGS)/%/pkginfo)
     82 NUKEFILES	+= $(MODULE_PKGS:%=$(PKGS)/%/copyright)
     83 NUKEFILES	+= $(MODULE_PKGS:%=$(PKGS)/%/depends)
     84 
     85 include ../Makefile.common
     86 
     87 $(FIBRE_CH)/%:	$(COMMON_FC_H)/%
     88 	$(INSTALL) -s -m 644 -f $(FIBRE_CH) $<
     89 
     90 $(FIBRE_CH)/%:	$(COMMON_IMPL_H)/%
     91 	$(INSTALL) -s -m 644 -f $(FIBRE_CH) $<
     92