xref: /titanic_44/usr/src/uts/sparc/ipf/Makefile (revision 18c2aff776a775d34a4c9893a4c72e0434d68e36)
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/sparc/ipf/Makefile
8#
9#
10#	This makefile drives the production of the ipf driver
11#	kernel module.
12#
13#	sparc architecture dependent
14#
15
16#
17#	Path to the base of the uts directory tree (usually /usr/src/uts).
18#
19UTSBASE	= ../..
20
21#
22#	Define the module and object file sets.
23#
24MODULE		= ipf
25OBJECTS		= $(IPF_OBJS:%=$(OBJS_DIR)/%)
26LINTS		= $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
27ROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
28CONF_SRCDIR	= $(UTSBASE)/common/inet/ipf
29
30#
31#	Include common rules.
32#
33include $(UTSBASE)/sparc/Makefile.sparc
34
35#
36#	Define targets
37#
38ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
39LINT_TARGET	= $(MODULE).lint
40INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
41
42#
43# lint pass one enforcement and OS version
44#
45MINOR=    echo $(RELEASE) | cut -d. -f2
46CFLAGS += $(CCVERBOSE)
47CPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP
48CPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN -DUSE_INET6
49LDFLAGS += -dy -Ndrv/ip -Ndrv/pfil -Nmisc/md5
50
51INC_PATH += -I$(UTSBASE)/common/inet/ipf
52
53#
54#	Default build targets.
55#
56.KEEP_STATE:
57
58def:		$(DEF_DEPS)
59
60all:		$(ALL_DEPS)
61
62clean:		$(CLEAN_DEPS)
63
64clobber:	$(CLOBBER_DEPS)
65
66lint:		$(LINT_DEPS)
67
68modlintlib:	$(MODLINTLIB_DEPS)
69
70clean.lint:	$(CLEAN_LINT_DEPS)
71
72install:	$(INSTALL_DEPS)
73
74#
75#	Include common targets.
76#
77include $(UTSBASE)/sparc/Makefile.targ
78