1*10616SSebastien.Roy@Sun.COM# 2*10616SSebastien.Roy@Sun.COM# CDDL HEADER START 3*10616SSebastien.Roy@Sun.COM# 4*10616SSebastien.Roy@Sun.COM# The contents of this file are subject to the terms of the 5*10616SSebastien.Roy@Sun.COM# Common Development and Distribution License (the "License"). 6*10616SSebastien.Roy@Sun.COM# You may not use this file except in compliance with the License. 7*10616SSebastien.Roy@Sun.COM# 8*10616SSebastien.Roy@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10616SSebastien.Roy@Sun.COM# or http://www.opensolaris.org/os/licensing. 10*10616SSebastien.Roy@Sun.COM# See the License for the specific language governing permissions 11*10616SSebastien.Roy@Sun.COM# and limitations under the License. 12*10616SSebastien.Roy@Sun.COM# 13*10616SSebastien.Roy@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 14*10616SSebastien.Roy@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10616SSebastien.Roy@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 16*10616SSebastien.Roy@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 17*10616SSebastien.Roy@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 18*10616SSebastien.Roy@Sun.COM# 19*10616SSebastien.Roy@Sun.COM# CDDL HEADER END 20*10616SSebastien.Roy@Sun.COM# 21*10616SSebastien.Roy@Sun.COM# 22*10616SSebastien.Roy@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10616SSebastien.Roy@Sun.COM# Use is subject to license terms. 24*10616SSebastien.Roy@Sun.COM# 25*10616SSebastien.Roy@Sun.COM# This makefile drives the production of the mac_ipv4 plugin 26*10616SSebastien.Roy@Sun.COM# kernel module. 27*10616SSebastien.Roy@Sun.COM# 28*10616SSebastien.Roy@Sun.COM 29*10616SSebastien.Roy@Sun.COM# 30*10616SSebastien.Roy@Sun.COM# Path to the base of the uts directory tree (usually /usr/src/uts). 31*10616SSebastien.Roy@Sun.COM# 32*10616SSebastien.Roy@Sun.COMUTSBASE = ../.. 33*10616SSebastien.Roy@Sun.COM 34*10616SSebastien.Roy@Sun.COM# 35*10616SSebastien.Roy@Sun.COM# Define the module and object file sets. 36*10616SSebastien.Roy@Sun.COM# 37*10616SSebastien.Roy@Sun.COMMODULE = mac_ipv4 38*10616SSebastien.Roy@Sun.COMOBJECTS = $(MAC_IPV4_OBJS:%=$(OBJS_DIR)/%) 39*10616SSebastien.Roy@Sun.COMLINTS = $(MAC_IPV4_OBJS:%.o=$(LINTS_DIR)/%.ln) 40*10616SSebastien.Roy@Sun.COMROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE) 41*10616SSebastien.Roy@Sun.COM 42*10616SSebastien.Roy@Sun.COM# 43*10616SSebastien.Roy@Sun.COM# Include common rules. 44*10616SSebastien.Roy@Sun.COM# 45*10616SSebastien.Roy@Sun.COMinclude $(UTSBASE)/intel/Makefile.intel 46*10616SSebastien.Roy@Sun.COM 47*10616SSebastien.Roy@Sun.COM# 48*10616SSebastien.Roy@Sun.COM# Define targets 49*10616SSebastien.Roy@Sun.COM# 50*10616SSebastien.Roy@Sun.COMALL_TARGET = $(BINARY) 51*10616SSebastien.Roy@Sun.COMLINT_TARGET = $(MODULE).lint 52*10616SSebastien.Roy@Sun.COMINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 53*10616SSebastien.Roy@Sun.COM 54*10616SSebastien.Roy@Sun.COM# 55*10616SSebastien.Roy@Sun.COM# Overrides. 56*10616SSebastien.Roy@Sun.COM# 57*10616SSebastien.Roy@Sun.COMCFLAGS += $(CCVERBOSE) 58*10616SSebastien.Roy@Sun.COMLDFLAGS += -dy -Nmisc/mac 59*10616SSebastien.Roy@Sun.COM 60*10616SSebastien.Roy@Sun.COMLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 61*10616SSebastien.Roy@Sun.COMLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 62*10616SSebastien.Roy@Sun.COM 63*10616SSebastien.Roy@Sun.COM# 64*10616SSebastien.Roy@Sun.COM# Default build targets. 65*10616SSebastien.Roy@Sun.COM# 66*10616SSebastien.Roy@Sun.COM.KEEP_STATE: 67*10616SSebastien.Roy@Sun.COM 68*10616SSebastien.Roy@Sun.COMdef: $(DEF_DEPS) 69*10616SSebastien.Roy@Sun.COM 70*10616SSebastien.Roy@Sun.COMall: $(ALL_DEPS) 71*10616SSebastien.Roy@Sun.COM 72*10616SSebastien.Roy@Sun.COMclean: $(CLEAN_DEPS) 73*10616SSebastien.Roy@Sun.COM 74*10616SSebastien.Roy@Sun.COMclobber: $(CLOBBER_DEPS) 75*10616SSebastien.Roy@Sun.COM 76*10616SSebastien.Roy@Sun.COMlint: $(LINT_DEPS) 77*10616SSebastien.Roy@Sun.COM 78*10616SSebastien.Roy@Sun.COMmodlintlib: $(MODLINTLIB_DEPS) 79*10616SSebastien.Roy@Sun.COM 80*10616SSebastien.Roy@Sun.COMclean.lint: $(CLEAN_LINT_DEPS) 81*10616SSebastien.Roy@Sun.COM 82*10616SSebastien.Roy@Sun.COMinstall: $(INSTALL_DEPS) 83*10616SSebastien.Roy@Sun.COM 84*10616SSebastien.Roy@Sun.COM# 85*10616SSebastien.Roy@Sun.COM# Include common targets. 86*10616SSebastien.Roy@Sun.COM# 87*10616SSebastien.Roy@Sun.COMinclude $(UTSBASE)/intel/Makefile.targ 88