xref: /titanic_44/usr/src/uts/intel/ipf/Makefile (revision c28749e97052f09388969427adf7df641cdcdc22)
1#
2# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5#ident	"%Z%%M%	%I%	%E% SMI"
6#
7# uts/intel/ipf/Makefile
8#
9#	This makefile drives the production of the ipf driver
10#	kernel module.
11#
12#	intel architecture dependent
13#
14
15#
16#	Path to the base of the uts directory tree (usually /usr/src/uts).
17#
18UTSBASE	= ../..
19
20#
21#	Define the module and object file sets.
22#
23MODULE		= ipf
24OBJECTS		= $(IPF_OBJS:%=$(OBJS_DIR)/%)
25LINTS		= $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
26ROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
27CONF_SRCDIR	= $(UTSBASE)/common/inet/ipf
28
29#
30#	Include common rules.
31#
32include $(UTSBASE)/intel/Makefile.intel
33
34#
35#	Define targets
36#
37ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
38LINT_TARGET	= $(MODULE).lint
39INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
40
41MINOR=	    echo $(RELEASE) | cut -d. -f2
42CPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
43CPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN
44LDFLAGS += -dy -Ndrv/ip -Ndrv/pfil -Nmisc/md5
45
46#
47#	Default build targets.
48#
49.KEEP_STATE:
50
51def:		$(DEF_DEPS)
52
53all:		$(ALL_DEPS)
54
55clean:		$(CLEAN_DEPS)
56
57clobber:	$(CLOBBER_DEPS)
58
59lint:		$(LINT_DEPS)
60
61modlintlib:	$(MODLINTLIB_DEPS)
62
63clean.lint:	$(CLEAN_LINT_DEPS)
64
65install:	$(INSTALL_DEPS)
66
67#
68#	Include common targets.
69#
70include $(UTSBASE)/intel/Makefile.targ
71