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.10 05/10/14 SMI" 27 # 28 # src/sun_nws/fp/Makefile 29 # 30 31 include ../Makefile.config 32 include ../Makefile.drvrs 33 34 # The following two lines make sure that on sparc the 64 bit version is the 35 # only one built (sparcv9) and or x86 the 32 bit and 64 bit versions are both 36 # built. 37 BUILD32 = $(MACH32:sparc=$(POUND_SIGN)) 38 BUILD32 = $(MACH32:i386=) 39 40 sparc_STAGING32 = $(PROTO_ROOT)/kernel/drv 41 sparc_STAGING64 = $(STAGING32)/sparcv9 42 43 i386_STAGING32 = $(PROTO_ROOT)/kernel/drv 44 i386_STAGING64 = $(STAGING32)/amd64 45 46 STAGING32 = $($(MACH)_STAGING32) 47 STAGING64 = $($(MACH)_STAGING64) 48 49 MODULE = fp 50 51 # Default configuration for mpxio differs for sparc and 52 # x86 as defined by fp.conf file for each machine type. 53 54 CONFFILE = conffile/$(MACH)/fp.conf 55 56 MODULE_PKGS = SUNWfctl 57 CLASS_ACTIONS = $(CLASS_ACTIONS_DIR)/i.fpconf 58 PKG_PROJ_DEPENDS = fctl 59 60 MODULE_SRC = fp.c 61 62 MODULE_OBJ_32 = $(MODULE_SRC:%.c=$(OBJ32)/%.o) 63 MODULE_OBJ_64 = $(MODULE_SRC:%.c=$(OBJ64)/%.o) 64 65 $(BUILD32)BINARY32 = $(OBJ32)/$(MODULE) 66 $(BUILD64)BINARY64 = $(OBJ64)/$(MODULE) 67 BINARIES = $(BINARY32) $(BINARY64) 68 69 $(BUILD32)LINT_TARGETS = lint32 70 $(BUILD64)LINT_TARGETS += lint64 71 72 73 COMMON_INCLUDES = -I$(MOD_INC_FCTL) 74 COMMON_INCLUDES += -I$(COM_INC_FC) 75 COMMON_INCLUDES += -I$(COMMON_FC_IMPL_HDRS_DIR) 76 77 78 $(BUILD32)ALLPREQ += $(OBJ32) 79 $(BUILD64)ALLPREQ += $(OBJ64) 80 ALLPREQ += .WAIT 81 ALLPREQ += $(BINARIES) 82 83 INSTALLPREQ = all 84 INSTALLPREQ += .WAIT 85 $(BUILD32)INSTALLPREQ += $(STAGING32) 86 $(BUILD64)INSTALLPREQ += $(STAGING64) 87 INSTALLPREQ += .WAIT 88 INSTALLPREQ += $(STAGING32)/$(CONFFILE) 89 $(BUILD32)INSTALLPREQ += $(STAGING32)/$(MODULE) 90 $(BUILD64)INSTALLPREQ += $(STAGING64)/$(MODULE) 91 92 PKGPREQ = install 93 PKGPREQ += $(PKG_PROJ_DEPENDS:%=%_installed) 94 PKGPREQ += $(PKGAREA) 95 PKGPREQ += .WAIT 96 PKGPREQ += $(MODULE_PKGS:%=$(PKGAREA)/%) 97 98 CLEANFILES = $(MODULE_OBJ_32) $(MODULE_OBJ_64) 99 100 CLEANWARFILES = fp.ll 101 CLEANWARFILES += fp.ok 102 103 CLOBBERFILES = $(CLEANWARFILES) 104 CLOBBERFILES += $(MOD_LINT_LIB) 105 106 NUKEFILES = $(CLOBBERFILES) 107 NUKEFILES += $(STAGING32)/$(CONFFILE) 108 NUKEFILES += $(STAGING32)/$(MODULE) 109 NUKEFILES += $(STAGING64)/$(MODULE) 110 NUKEFILES += $(MODULE_PKGS:%=$(PKGAREA)/%) 111 112 include ../Makefile.common 113 114 LDFLAGS += -dy -N"drv/fcp" -N"misc/fctl" -N"misc/scsi" 115 116 # 117 # Builddate 118 # 119 BUILD_DATE:sh= date +%\Y%m%d 120 CPPFLAGS32 += -DBUILD_DATE=\"$(BUILD_DATE)\" 121 CPPFLAGS64 += -DBUILD_DATE=\"$(BUILD_DATE)\" 122 123