Home | History | Annotate | Download | only in mdb_modules
      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 src/sun_nws/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 src/sun_nws/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 2006 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 #ident	"@(#)Makefile	1.8	06/04/24 SMI"
     26 
     27 include ../Makefile.config
     28 include ../Makefile.drvrs
     29 
     30 STAGINGMDB32		= $(PROTO_ROOT)/usr/lib/mdb/kvm
     31 sparc_STAGINGMDB64	= $(STAGINGMDB32)/sparcv9
     32 i386_STAGINGMDB64	= $(STAGINGMDB32)/amd64
     33 STAGINGMDB64		= $($(MACH)_STAGINGMDB64)
     34 
     35 MDBMOD_LIST	 = fcp
     36 MDBMOD_LIST	+= fcip
     37 MDBMOD_LIST	+= fctl
     38 
     39 MDBMODS32	 = $(MDBMOD_LIST:%=$(OBJ32)/%.so)
     40 MDBMODS64	 = $(MDBMOD_LIST:%=$(OBJ64)/%.so)
     41 
     42 MODULE_PKGS	 = SUNWfcmdb
     43 
     44 # Handle creating our directories when needed
     45 DIRS		+= $(STAGINGMDB32)
     46 $(BUILD64)DIRS	+= $(STAGINGMDB64)
     47 
     48 ALLPREQ 		 = $(OBJ32)
     49 $(BUILD64)ALLPREQ 	+= $(OBJ64)
     50 ALLPREQ			+= .WAIT
     51 ALLPREQ 		+= $(MDBMODS32)
     52 $(BUILD64)ALLPREQ 	+= $(MDBMODS64)
     53 
     54 INSTALLPREQ		 = all
     55 INSTALLPREQ		+= .WAIT
     56 INSTALLPREQ		+= $(STAGINGMDB32)
     57 $(BUILD64)INSTALLPREQ	+= $(STAGINGMDB64)
     58 INSTALLPREQ		+= .WAIT
     59 INSTALLPREQ		+= $(MDBMOD_LIST:%=$(STAGINGMDB32)/%.so)
     60 $(BUILD64)INSTALLPREQ	+= $(MDBMOD_LIST:%=$(STAGINGMDB64)/%.so)
     61 
     62 PKGPREQ 	 = install
     63 PKGPREQ 	+= $(PKG_PROJ_DEPENDS:%=%_installed)
     64 PKGPREQ 	+= $(PKGAREA)
     65 PKGPREQ 	+= .WAIT
     66 PKGPREQ 	+= $(MODULE_PKGS:%=$(PKGAREA)/%)
     67 
     68 CLEANFILES  	 = $(OBJ)*/*.so
     69 CLEANFILES  	+= $(OBJ)*/*.o
     70 
     71 NUKEFILES	 = $(CLOBBERFILES)
     72 NUKEFILES	+= $(MDBMOD_LIST:%=$(STAGINGMDB32)/%.so)
     73 NUKEFILES  	+= $(MDBMOD_LIST:%=$(STAGINGMDB64)/%.so)
     74 NUKEFILES       += $(MODULE_PKGS:%=$(PKGAREA)/%)
     75 
     76 include ../Makefile.common
     77 
     78