Makefile revision 381a2a9a387f449fab7d0c7e97c4184c26963abf
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# CDDL HEADER START
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# The contents of this file are subject to the terms of the
68ba377fc3b124baa759662077c48077ebadb186minfrin# Common Development and Distribution License (the "License").
68ba377fc3b124baa759662077c48077ebadb186minfrin# You may not use this file except in compliance with the License.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68ba377fc3b124baa759662077c48077ebadb186minfrin# or http://www.opensolaris.org/os/licensing.
68ba377fc3b124baa759662077c48077ebadb186minfrin# See the License for the specific language governing permissions
68ba377fc3b124baa759662077c48077ebadb186minfrin# and limitations under the License.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# When distributing Covered Code, include this CDDL HEADER in each
68ba377fc3b124baa759662077c48077ebadb186minfrin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68ba377fc3b124baa759662077c48077ebadb186minfrin# If applicable, add the following below this CDDL HEADER, with the
68ba377fc3b124baa759662077c48077ebadb186minfrin# fields enclosed by brackets "[]" replaced with your own identifying
68ba377fc3b124baa759662077c48077ebadb186minfrin# information: Portions Copyright [yyyy] [name of copyright owner]
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# CDDL HEADER END
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
68ba377fc3b124baa759662077c48077ebadb186minfrin# Use is subject to license terms.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin#ident "%Z%%M% %I% %E% SMI"
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# uts/intel/ipf/Makefile
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# This makefile drives the production of the ipf driver
68ba377fc3b124baa759662077c48077ebadb186minfrin# kernel module.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# intel architecture dependent
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# Path to the base of the uts directory tree (usually /usr/src/uts).
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrinUTSBASE = ../..
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# Define the module and object file sets.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrinMODULE = ipf
68ba377fc3b124baa759662077c48077ebadb186minfrinOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%)
68ba377fc3b124baa759662077c48077ebadb186minfrinLINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
68ba377fc3b124baa759662077c48077ebadb186minfrinROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
68ba377fc3b124baa759662077c48077ebadb186minfrinCONF_SRCDIR = $(UTSBASE)/common/inet/ipf
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# Include common rules.
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrininclude $(UTSBASE)/intel/Makefile.intel
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrin# Define targets
68ba377fc3b124baa759662077c48077ebadb186minfrin#
68ba377fc3b124baa759662077c48077ebadb186minfrinALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
MINOR= echo $(RELEASE) | cut -d. -f2
CPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
CPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN
LDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti
INC_PATH += -I$(UTSBASE)/common/inet/ipf
#
# 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)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ