# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at src/sun_nws/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at src/sun_nws/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)Makefile 1.3 08/03/23 SMI" # # src/sun_nws/idm/Makefile # include ../Makefile.config include ../Makefile.drvrs # The following two lines make sure that on sparc the 64 bit version is the # only one built (sparcv9) and or x86 the 32 bit and 64 bit versions are both # built. BUILD32 = $(MACH32:sparc=$(POUND_SIGN)) BUILD32 = $(MACH32:i386=) sparc_STAGING32 = $(PROTO_ROOT)/kernel/misc sparc_STAGING64 = $(STAGING32)/sparcv9 i386_STAGING32 = $(PROTO_ROOT)/kernel/misc i386_STAGING64 = $(STAGING32)/amd64 STAGING32 = $($(MACH)_STAGING32) STAGING64 = $($(MACH)_STAGING64) # Kernel Module Dependencies LDFLAGS += -dy -N"fs/sockfs" MODULE = idm MODULE_PKGS = SUNWiscsitr #CLASS_ACTIONS = $(ON_REF_GATE)/usr/src/pkgdefs/common_files/i.manifest #CLASS_ACTIONS += $(ON_REF_GATE)/usr/src/pkgdefs/common_files/r.manifest #CLASS_ACTIONS += $(ON_REF_GATE)/usr/src/pkgdefs/common_files/i.rbac #CLASS_ACTIONS += $(ON_REF_GATE)/usr/src/pkgdefs/common_files/r.rbac #CLASS_ACTIONS += $(CLASS_ACTIONS_DIR)/i.idmconf MODULE_SRC = idm.c MODULE_SRC += idm_impl.c MODULE_SRC += idm_so.c MODULE_SRC += idm_conn_sm.c MODULE_OBJ_32 = $(MODULE_SRC:%.c=$(OBJ32)/%.o) MODULE_OBJ_32 += $(COMMON_SRC:$(COM_SRC_ISCSI)/%.c=$(OBJ32)/%.o) MODULE_OBJ_64 = $(MODULE_SRC:%.c=$(OBJ64)/%.o) MODULE_OBJ_64 += $(COMMON_SRC:$(COM_SRC_ISCSI)/%.c=$(OBJ64)/%.o) $(BUILD32)BINARY32 = $(OBJ32)/$(MODULE) $(BUILD64)BINARY64 = $(OBJ64)/$(MODULE) BINARIES = $(BINARY32) $(BINARY64) $(BUILD32)LINT_TARGETS = lint32 $(BUILD64)LINT_TARGETS += lint64 COMMON_INCLUDES = -I$(HDRS_DIR) COMMON_INCLUDES += -I$(COM_INC_ISCSI) COMMON_INCLUDES += -I$(COMMON_ISCSI_IMPL_HDRS_DIR) $(BUILD32)ALLPREQ += $(OBJ32) $(BUILD64)ALLPREQ += $(OBJ64) ALLPREQ += .WAIT ALLPREQ += $(BINARIES) INSTALLPREQ = all INSTALLPREQ += .WAIT $(BUILD32)INSTALLPREQ += $(STAGING32) $(BUILD64)INSTALLPREQ += $(STAGING64) INSTALLPREQ += .WAIT $(BUILD32)INSTALLPREQ += $(STAGING32)/$(MODULE) $(BUILD64)INSTALLPREQ += $(STAGING64)/$(MODULE) PKGPREQ = install PKGPREQ += .WAIT PKGPREQ += $(PKG_PROJ_DEPENDS:%=%_installed) PKGPREQ += $(PKGAREA) PKGPREQ += .WAIT PKGPREQ += $(MODULE_PKGS:%=$(PKGAREA)/%) CLEANFILES = $(MODULE_OBJ_32) $(MODULE_OBJ_64) CLEANWARFILES = idm.ll CLEANWARFILES += idm.ok CLOBBERFILES = $(CLEANFILES) CLOBBERFILES += $(CLEANWARFILES) CLOBBERFILES += $(MOD_LINT_LIB) NUKEFILES = $(CLOBBERFILES) NUKEFILES += $(STAGING32)/$(MODULE) NUKEFILES += $(STAGING64)/$(MODULE) NUKEFILES += $(MODULE_PKGS:%=$(PKGAREA)/%) include ../Makefile.common # # Builddate # BUILD_DATE:sh= date +%\Y%m%d CPPFLAGS32 += -DBUILD_DATE=\"$(BUILD_DATE)\" CPPFLAGS64 += -DBUILD_DATE=\"$(BUILD_DATE)\"