xref: /titanic_50/usr/src/uts/intel/ipnet/Makefile (revision 0a0e9771ca0211c15f3ac4466b661c145feeb9e4)
1b127ac41SPhilip Kirk#
2b127ac41SPhilip Kirk# CDDL HEADER START
3b127ac41SPhilip Kirk#
4b127ac41SPhilip Kirk# The contents of this file are subject to the terms of the
5b127ac41SPhilip Kirk# Common Development and Distribution License (the "License").
6b127ac41SPhilip Kirk# You may not use this file except in compliance with the License.
7b127ac41SPhilip Kirk#
8b127ac41SPhilip Kirk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b127ac41SPhilip Kirk# or http://www.opensolaris.org/os/licensing.
10b127ac41SPhilip Kirk# See the License for the specific language governing permissions
11b127ac41SPhilip Kirk# and limitations under the License.
12b127ac41SPhilip Kirk#
13b127ac41SPhilip Kirk# When distributing Covered Code, include this CDDL HEADER in each
14b127ac41SPhilip Kirk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b127ac41SPhilip Kirk# If applicable, add the following below this CDDL HEADER, with the
16b127ac41SPhilip Kirk# fields enclosed by brackets "[]" replaced with your own identifying
17b127ac41SPhilip Kirk# information: Portions Copyright [yyyy] [name of copyright owner]
18b127ac41SPhilip Kirk#
19b127ac41SPhilip Kirk# CDDL HEADER END
20b127ac41SPhilip Kirk#
21b127ac41SPhilip Kirk
22b127ac41SPhilip Kirk#
23*0a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24b127ac41SPhilip Kirk# Use is subject to license terms.
25b127ac41SPhilip Kirk#
26b127ac41SPhilip Kirk#   This makefile drives the production of the ipnet driver
27b127ac41SPhilip Kirk#   kernel module.
28b127ac41SPhilip Kirk#
29b127ac41SPhilip Kirk#   intel architecture dependent
30b127ac41SPhilip Kirk#
31b127ac41SPhilip Kirk
32b127ac41SPhilip Kirk#
33b127ac41SPhilip Kirk#   Path to the base of the uts directory tree (usually /usr/src/uts).
34b127ac41SPhilip Kirk#
35b127ac41SPhilip Kirk
36b127ac41SPhilip KirkUTSBASE = ../..
37b127ac41SPhilip Kirk
38b127ac41SPhilip Kirk#
39b127ac41SPhilip Kirk#   Define the module and object file sets.
40b127ac41SPhilip Kirk#
41b127ac41SPhilip Kirk
42b127ac41SPhilip KirkMODULE          = ipnet
43b127ac41SPhilip KirkOBJECTS         = $(IPNET_OBJS:%=$(OBJS_DIR)/%)
44b127ac41SPhilip KirkLINTS           = $(IPNET_OBJS:%.o=$(LINTS_DIR)/%.ln)
45b127ac41SPhilip KirkROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
46b127ac41SPhilip KirkCONF_SRCDIR     = $(UTSBASE)/common/inet/ipnet
47b127ac41SPhilip Kirk
48b127ac41SPhilip Kirk#
49b127ac41SPhilip Kirk#   Include common rules.
50b127ac41SPhilip Kirk#
51b127ac41SPhilip Kirk
52b127ac41SPhilip Kirkinclude $(UTSBASE)/intel/Makefile.intel
53b127ac41SPhilip Kirk
54b127ac41SPhilip Kirk#
55b127ac41SPhilip Kirk#   Define targets
56b127ac41SPhilip Kirk#
57b127ac41SPhilip Kirk
58b127ac41SPhilip KirkALL_TARGET      = $(BINARY) $(SRC_CONFFILE)
59b127ac41SPhilip KirkLINT_TARGET     = $(MODULE).lint
60b127ac41SPhilip KirkINSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
61b127ac41SPhilip Kirk
62b127ac41SPhilip Kirk#
63b127ac41SPhilip Kirk# lint pass one enforcement
64b127ac41SPhilip Kirk#
65b127ac41SPhilip Kirk
66b127ac41SPhilip KirkCFLAGS          += $(CCVERBOSE)
67b127ac41SPhilip Kirk
68b127ac41SPhilip Kirk#
69b127ac41SPhilip Kirk# STREAMS API limitations force us to turn off these lint checks.
70b127ac41SPhilip Kirk#
71b127ac41SPhilip KirkLINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
72b127ac41SPhilip KirkLINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
73b127ac41SPhilip Kirk
74b127ac41SPhilip Kirk#
75b127ac41SPhilip Kirk# Depends on ip, neti, and hook.
76b127ac41SPhilip Kirk#
77b127ac41SPhilip KirkLDFLAGS		+= -dy -Ndrv/ip -Nmisc/neti -Nmisc/hook
78b127ac41SPhilip Kirk
79b127ac41SPhilip Kirk#
80*0a0e9771SDarren Reed# To get the BPF header files
81*0a0e9771SDarren Reed#
82*0a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf
83*0a0e9771SDarren Reed
84*0a0e9771SDarren Reed#
85b127ac41SPhilip Kirk#   Default build targets.
86b127ac41SPhilip Kirk#
87b127ac41SPhilip Kirk
88b127ac41SPhilip Kirk.KEEP_STATE:
89b127ac41SPhilip Kirk
90b127ac41SPhilip Kirkdef:            $(DEF_DEPS)
91b127ac41SPhilip Kirk
92b127ac41SPhilip Kirkall:            $(ALL_DEPS)
93b127ac41SPhilip Kirk
94b127ac41SPhilip Kirkclean:          $(CLEAN_DEPS)
95b127ac41SPhilip Kirk
96b127ac41SPhilip Kirkclobber:        $(CLOBBER_DEPS)
97b127ac41SPhilip Kirk
98b127ac41SPhilip Kirklint:           $(LINT_DEPS)
99b127ac41SPhilip Kirk
100b127ac41SPhilip Kirkmodlintlib:     $(MODLINTLIB_DEPS)
101b127ac41SPhilip Kirk
102b127ac41SPhilip Kirkclean.lint:     $(CLEAN_LINT_DEPS)
103b127ac41SPhilip Kirk
104b127ac41SPhilip Kirkinstall:        $(INSTALL_DEPS)
105b127ac41SPhilip Kirk
106b127ac41SPhilip Kirk#
107b127ac41SPhilip Kirk#   Include common targets.
108b127ac41SPhilip Kirk#
109b127ac41SPhilip Kirk
110b127ac41SPhilip Kirkinclude $(UTSBASE)/intel/Makefile.targ
111