xref: /illumos-gate/usr/src/uts/intel/sockpfp/Makefile (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
1*0a0e9771SDarren Reed#
2*0a0e9771SDarren Reed# CDDL HEADER START
3*0a0e9771SDarren Reed#
4*0a0e9771SDarren Reed# The contents of this file are subject to the terms of the
5*0a0e9771SDarren Reed# Common Development and Distribution License (the "License").
6*0a0e9771SDarren Reed# You may not use this file except in compliance with the License.
7*0a0e9771SDarren Reed#
8*0a0e9771SDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0a0e9771SDarren Reed# or http://www.opensolaris.org/os/licensing.
10*0a0e9771SDarren Reed# See the License for the specific language governing permissions
11*0a0e9771SDarren Reed# and limitations under the License.
12*0a0e9771SDarren Reed#
13*0a0e9771SDarren Reed# When distributing Covered Code, include this CDDL HEADER in each
14*0a0e9771SDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0a0e9771SDarren Reed# If applicable, add the following below this CDDL HEADER, with the
16*0a0e9771SDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying
17*0a0e9771SDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner]
18*0a0e9771SDarren Reed#
19*0a0e9771SDarren Reed# CDDL HEADER END
20*0a0e9771SDarren Reed#
21*0a0e9771SDarren Reed#
22*0a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*0a0e9771SDarren Reed# Use is subject to license terms.
24*0a0e9771SDarren Reed#
25*0a0e9771SDarren Reed#	This makefile drives the production of the nca driver
26*0a0e9771SDarren Reed#	kernel module.
27*0a0e9771SDarren Reed#
28*0a0e9771SDarren Reed#	intel architecture dependent
29*0a0e9771SDarren Reed#
30*0a0e9771SDarren Reed
31*0a0e9771SDarren Reed#
32*0a0e9771SDarren Reed#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*0a0e9771SDarren Reed#
34*0a0e9771SDarren ReedUTSBASE	= ../..
35*0a0e9771SDarren Reed
36*0a0e9771SDarren Reed#
37*0a0e9771SDarren Reed#	Define the module and object file sets.
38*0a0e9771SDarren Reed#
39*0a0e9771SDarren ReedMODULE		= sockpfp
40*0a0e9771SDarren ReedOBJECTS		= $(PFP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
41*0a0e9771SDarren ReedLINTS		= $(PFP_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*0a0e9771SDarren ReedROOTMODULE	= $(USR_SOCK_DIR)/$(MODULE)
43*0a0e9771SDarren Reed
44*0a0e9771SDarren Reed#
45*0a0e9771SDarren Reed#	Include common rules.
46*0a0e9771SDarren Reed#
47*0a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.intel
48*0a0e9771SDarren Reed
49*0a0e9771SDarren Reed#
50*0a0e9771SDarren Reed#	Define targets
51*0a0e9771SDarren Reed#
52*0a0e9771SDarren ReedALL_TARGET	= $(BINARY)
53*0a0e9771SDarren ReedLINT_TARGET	= $(MODULE).lint
54*0a0e9771SDarren ReedINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55*0a0e9771SDarren Reed
56*0a0e9771SDarren Reed#
57*0a0e9771SDarren Reed# lint pass one enforcement and OS version
58*0a0e9771SDarren Reed#
59*0a0e9771SDarren ReedCFLAGS += $(CCVERBOSE)
60*0a0e9771SDarren Reed
61*0a0e9771SDarren ReedLDFLAGS += -dy -Nfs/sockfs -Nmisc/dls -Nmisc/mac -Ndrv/bpf
62*0a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/inet/sockmods -I$(UTSBASE)/common/io/bpf
63*0a0e9771SDarren Reed
64*0a0e9771SDarren Reed#
65*0a0e9771SDarren Reed# For now, disable these lint checks; maintainers should endeavor
66*0a0e9771SDarren Reed# to investigate and remove these for maximum lint coverage.
67*0a0e9771SDarren Reed# Please do not carry these forward to new Makefiles.
68*0a0e9771SDarren Reed#
69*0a0e9771SDarren ReedLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN
70*0a0e9771SDarren Reed
71*0a0e9771SDarren Reed#
72*0a0e9771SDarren Reed#	Default build targets.
73*0a0e9771SDarren Reed#
74*0a0e9771SDarren Reed.KEEP_STATE:
75*0a0e9771SDarren Reed
76*0a0e9771SDarren Reeddef:		$(DEF_DEPS)
77*0a0e9771SDarren Reed
78*0a0e9771SDarren Reedall:		$(ALL_DEPS)
79*0a0e9771SDarren Reed
80*0a0e9771SDarren Reedclean:		$(CLEAN_DEPS)
81*0a0e9771SDarren Reed
82*0a0e9771SDarren Reedclobber:	$(CLOBBER_DEPS)
83*0a0e9771SDarren Reed
84*0a0e9771SDarren Reedlint:		$(LINT_DEPS)
85*0a0e9771SDarren Reed
86*0a0e9771SDarren Reedmodlintlib:	$(MODLINTLIB_DEPS)
87*0a0e9771SDarren Reed
88*0a0e9771SDarren Reedclean.lint:	$(CLEAN_LINT_DEPS)
89*0a0e9771SDarren Reed
90*0a0e9771SDarren Reedinstall:	$(INSTALL_DEPS)
91*0a0e9771SDarren Reed
92*0a0e9771SDarren Reed#
93*0a0e9771SDarren Reed#	Include common targets.
94*0a0e9771SDarren Reed#
95*0a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.targ
96