Makefile revision 02d09e03eb27f3a2dc299de704e45dae5173f43f
377N/A#
377N/A# CDDL HEADER START
377N/A#
377N/A# The contents of this file are subject to the terms of the
377N/A# Common Development and Distribution License (the "License").
377N/A# You may not use this file except in compliance with the License.
377N/A#
377N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
377N/A# or http://www.opensolaris.org/os/licensing.
377N/A# See the License for the specific language governing permissions
377N/A# and limitations under the License.
377N/A#
377N/A# When distributing Covered Code, include this CDDL HEADER in each
377N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
377N/A# If applicable, add the following below this CDDL HEADER, with the
377N/A# fields enclosed by brackets "[]" replaced with your own identifying
377N/A# information: Portions Copyright [yyyy] [name of copyright owner]
377N/A#
377N/A# CDDL HEADER END
377N/A#
3996N/A#
377N/A# uts/intel/nsmb/Makefile
3996N/A#
3996N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3996N/A# Use is subject to license terms.
377N/A#
377N/A
1273N/A#
377N/A# intel architecture dependent
1273N/A#
1273N/A
377N/A#
377N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
844N/AUTSBASE = ../..
377N/A
1273N/A#
377N/A# Define the module and object file sets.
3661N/A#
3661N/AMODULE = nsmb
3996N/AOBJECTS = $(NSMB_OBJS:%=$(OBJS_DIR)/%)
3996N/ALINTS = $(NSMB_OBJS:%.o=$(LINTS_DIR)/%.ln)
3996N/AROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
377N/ACONF_SRCDIR = $(UTSBASE)/common/fs/smbclnt/netsmb
377N/AOFFSETS_SRC = $(CONF_SRCDIR)/offsets.in
377N/AIOC_CHECK_H = $(OBJS_DIR)/ioc_check.h
377N/A
377N/A#
377N/A# Include common rules.
377N/A#
377N/Ainclude $(UTSBASE)/intel/Makefile.intel
377N/A
377N/A#
377N/A# Define targets
377N/A#
377N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
377N/ALINT_TARGET = $(MODULE).lint
377N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
377N/A
377N/A#
3996N/A# Overrides.
377N/A#
3996N/AMODSTUBS_DIR = $(OBJS_DIR)
3996N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DNSMB_MODULE
3996N/ACLEANFILES += $(MODSTUBS_O) $(IOC_CHECK_H)
3996N/AC99MODE = $(C99_ENABLE)
3996N/ACERRWARN += -erroff=E_STATEMENT_NOT_REACHED
3996N/AINC_PATH += -I$(UTSBASE)/common/fs/smbclnt
3996N/ALDFLAGS += -dy -Ncrypto/md4 -Ncrypto/md5 -Nmisc/tlimod
3996N/A
3996N/A# Until CR 4994570 is fixed...
LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
# The mb_put/md_get functions are intentionally used with and without
# return value checks, so filter those out like LGREP.2 does.
LGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
LTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Create ioc_check.h and compare with the saved
# ioc_check.ref to ensure 32/64-bit invariance.
#
$(OBJECTS) : $(IOC_CHECK_H)
$(IOC_CHECK_H): $(OFFSETS_SRC)
$(OFFSETS_CREATE) <$(OFFSETS_SRC) >$@.tmp
cmp -s ioc_check.ref $@.tmp && \
mv -f $@.tmp $@
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ