xref: /titanic_50/usr/src/uts/intel/ipf/Makefile (revision ab25eeb551a4be927a4b6ae2cf8aff7ed17decb4)
1#
2# Copyright 2006 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
46INC_PATH += -I$(UTSBASE)/common/inet/ipf
47
48#
49#	Default build targets.
50#
51.KEEP_STATE:
52
53def:		$(DEF_DEPS)
54
55all:		$(ALL_DEPS)
56
57clean:		$(CLEAN_DEPS)
58
59clobber:	$(CLOBBER_DEPS)
60
61lint:		$(LINT_DEPS)
62
63modlintlib:	$(MODLINTLIB_DEPS)
64
65clean.lint:	$(CLEAN_LINT_DEPS)
66
67install:	$(INSTALL_DEPS)
68
69#
70#	Include common targets.
71#
72include $(UTSBASE)/intel/Makefile.targ
73