Makefile revision 7ddc9b1afd18f260b9fb78ec7732facd91769131
166N/A#
166N/A# CDDL HEADER START
166N/A#
166N/A# The contents of this file are subject to the terms of the
166N/A# Common Development and Distribution License (the "License").
166N/A# You may not use this file except in compliance with the License.
166N/A#
166N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
166N/A# or http://www.opensolaris.org/os/licensing.
166N/A# See the License for the specific language governing permissions
166N/A# and limitations under the License.
166N/A#
166N/A# When distributing Covered Code, include this CDDL HEADER in each
166N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
166N/A# If applicable, add the following below this CDDL HEADER, with the
166N/A# fields enclosed by brackets "[]" replaced with your own identifying
166N/A# information: Portions Copyright [yyyy] [name of copyright owner]
166N/A#
166N/A# CDDL HEADER END
166N/A#
166N/A#
166N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3728N/A# Use is subject to license terms.
166N/A#
166N/A# uts/intel/ipf/Makefile
166N/A#
166N/A# This makefile drives the production of the ipf driver
166N/A# kernel module.
3728N/A#
166N/A# intel architecture dependent
618N/A#
166N/A
3728N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3728N/A#
166N/AUTSBASE = ../..
1258N/A
166N/A#
3728N/A# Define the module and object file sets.
2899N/A#
3817N/AMODULE = ipf
3817N/AOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%)
3817N/ALINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
166N/AROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
166N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ipf
166N/A
166N/A#
166N/A# Include common rules.
166N/A#
166N/Ainclude $(UTSBASE)/intel/Makefile.intel
166N/A
166N/A#
3728N/A# Define targets
3728N/A#
3728N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
3728N/ALINT_TARGET = $(MODULE).lint
3728N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3728N/A
3728N/ACPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
3728N/ACPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN
3728N/ALDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/hook -Nmisc/kcf
3728N/A
3477N/AINC_PATH += -I$(UTSBASE)/common/inet/ipf
3730N/A
3730N/A#
3730N/A# For now, disable these lint checks; maintainers should endeavor
3730N/A# to investigate and remove these for maximum lint coverage.
3730N/A# Please do not carry these forward to new Makefiles.
3730N/A#
3730N/ALINTTAGS += -erroff=E_STATIC_UNUSED
3728N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
3728N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
3728N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
3728N/A
166N/A#
3728N/A# Default build targets.
166N/A#
3728N/A.KEEP_STATE:
3728N/A
3728N/Adef: $(DEF_DEPS)
166N/A
166N/Aall: $(ALL_DEPS) $(SISCHECK_DEPS)
3817N/A
3817N/Aclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
3817N/A
3817N/Aclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
3817N/A
3817N/Alint: $(LINT_DEPS)
3817N/A
3817N/Amodlintlib: $(MODLINTLIB_DEPS)
3817N/A
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS) $(SISCHECK_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ