xref: /titanic_50/usr/src/uts/sparc/ipf/Makefile (revision 88f8b78a88cbdc6d8c1af5c3e54bc49d25095c98)
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/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
51#
52#	Default build targets.
53#
54.KEEP_STATE:
55
56def:		$(DEF_DEPS)
57
58all:		$(ALL_DEPS)
59
60clean:		$(CLEAN_DEPS)
61
62clobber:	$(CLOBBER_DEPS)
63
64lint:		$(LINT_DEPS)
65
66modlintlib:	$(MODLINTLIB_DEPS)
67
68clean.lint:	$(CLEAN_LINT_DEPS)
69
70install:	$(INSTALL_DEPS)
71
72#
73#	Include common targets.
74#
75include $(UTSBASE)/sparc/Makefile.targ
76