xref: /titanic_51/usr/src/uts/sparc/ksslf/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1dd49f125SAnders Persson#
2dd49f125SAnders Persson# CDDL HEADER START
3dd49f125SAnders Persson#
4dd49f125SAnders Persson# The contents of this file are subject to the terms of the
5dd49f125SAnders Persson# Common Development and Distribution License (the "License").
6dd49f125SAnders Persson# You may not use this file except in compliance with the License.
7dd49f125SAnders Persson#
8dd49f125SAnders Persson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9dd49f125SAnders Persson# or http://www.opensolaris.org/os/licensing.
10dd49f125SAnders Persson# See the License for the specific language governing permissions
11dd49f125SAnders Persson# and limitations under the License.
12dd49f125SAnders Persson#
13dd49f125SAnders Persson# When distributing Covered Code, include this CDDL HEADER in each
14dd49f125SAnders Persson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15dd49f125SAnders Persson# If applicable, add the following below this CDDL HEADER, with the
16dd49f125SAnders Persson# fields enclosed by brackets "[]" replaced with your own identifying
17dd49f125SAnders Persson# information: Portions Copyright [yyyy] [name of copyright owner]
18dd49f125SAnders Persson#
19dd49f125SAnders Persson# CDDL HEADER END
20dd49f125SAnders Persson#
21dd49f125SAnders Persson#
22dd49f125SAnders Persson# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23dd49f125SAnders Persson#
24dd49f125SAnders Persson#	This makefile drives the production of the kssl socket filter
25dd49f125SAnders Persson#	kernel module.
26dd49f125SAnders Persson#
27dd49f125SAnders Persson#	sparc architecture dependent
28dd49f125SAnders Persson#
29dd49f125SAnders Persson
30dd49f125SAnders Persson#
31dd49f125SAnders Persson#	Path to the base of the uts directory tree (usually /usr/src/uts).
32dd49f125SAnders Persson#
33dd49f125SAnders PerssonUTSBASE	= ../..
34dd49f125SAnders Persson
35dd49f125SAnders Persson#
36dd49f125SAnders Persson#	Define the module and object file sets.
37dd49f125SAnders Persson#
38dd49f125SAnders PerssonMODULE		= ksslf
39dd49f125SAnders PerssonOBJECTS		= $(KSSL_SOCKFIL_MOD_OBJS:%=$(OBJS_DIR)/%)
40dd49f125SAnders PerssonLINTS		= $(KSSL_SOCKFIL_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
41dd49f125SAnders PerssonROOTMODULE	= $(ROOT_SOCK_DIR)/$(MODULE)
42dd49f125SAnders Persson
43dd49f125SAnders Persson#
44dd49f125SAnders Persson#	Include common rules.
45dd49f125SAnders Persson#
46dd49f125SAnders Perssoninclude $(UTSBASE)/sparc/Makefile.sparc
47dd49f125SAnders Persson
48dd49f125SAnders Persson#
49dd49f125SAnders Persson#	Define targets
50dd49f125SAnders Persson#
51dd49f125SAnders PerssonALL_TARGET	= $(BINARY)
52dd49f125SAnders PerssonLINT_TARGET	= $(MODULE).lint
53dd49f125SAnders PerssonINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54dd49f125SAnders Persson
55dd49f125SAnders Persson#
56dd49f125SAnders Persson# lint pass one enforcement and OS version
57dd49f125SAnders Persson#
58dd49f125SAnders PerssonCFLAGS += $(CCVERBOSE)
59dd49f125SAnders Persson
60dd49f125SAnders PerssonLDFLAGS += -dy -Nmisc/md5 -Nmisc/kcf -Ndrv/kssl -Nfs/sockfs
61dd49f125SAnders Persson
62dd49f125SAnders Persson#
63dd49f125SAnders Persson# For now, disable these lint checks; maintainers should endeavor
64dd49f125SAnders Persson# to investigate and remove these for maximum lint coverage.
65dd49f125SAnders Persson# Please do not carry these forward to new Makefiles.
66dd49f125SAnders Persson#
67dd49f125SAnders PerssonLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
68dd49f125SAnders PerssonLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
69dd49f125SAnders Persson
70*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
71*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
72*7014882cSRichard Lowe
73dd49f125SAnders Persson#
74dd49f125SAnders Persson#	Default build targets.
75dd49f125SAnders Persson#
76dd49f125SAnders Persson.KEEP_STATE:
77dd49f125SAnders Persson
78dd49f125SAnders Perssondef:		$(DEF_DEPS)
79dd49f125SAnders Persson
80dd49f125SAnders Perssonall:		$(ALL_DEPS)
81dd49f125SAnders Persson
82dd49f125SAnders Perssonclean:		$(CLEAN_DEPS)
83dd49f125SAnders Persson
84dd49f125SAnders Perssonclobber:	$(CLOBBER_DEPS)
85dd49f125SAnders Persson
86dd49f125SAnders Perssonlint:		$(LINT_DEPS)
87dd49f125SAnders Persson
88dd49f125SAnders Perssonmodlintlib:	$(MODLINTLIB_DEPS)
89dd49f125SAnders Persson
90dd49f125SAnders Perssonclean.lint:	$(CLEAN_LINT_DEPS)
91dd49f125SAnders Persson
92dd49f125SAnders Perssoninstall:	$(INSTALL_DEPS)
93dd49f125SAnders Persson
94dd49f125SAnders Persson#
95dd49f125SAnders Persson#	Include common targets.
96dd49f125SAnders Persson#
97dd49f125SAnders Perssoninclude $(UTSBASE)/sparc/Makefile.targ
98