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# 26*10616SSebastien.Roy@Sun.COM# This makefile drives the production of the mac_ipv6 plugin 27*10616SSebastien.Roy@Sun.COM# kernel module. 28*10616SSebastien.Roy@Sun.COM# 29*10616SSebastien.Roy@Sun.COM 30*10616SSebastien.Roy@Sun.COM# 31*10616SSebastien.Roy@Sun.COM# Path to the base of the uts directory tree (usually /usr/src/uts). 32*10616SSebastien.Roy@Sun.COM# 33*10616SSebastien.Roy@Sun.COMUTSBASE = ../.. 34*10616SSebastien.Roy@Sun.COM 35*10616SSebastien.Roy@Sun.COM# 36*10616SSebastien.Roy@Sun.COM# Define the module and object file sets. 37*10616SSebastien.Roy@Sun.COM# 38*10616SSebastien.Roy@Sun.COMMODULE = mac_ipv6 39*10616SSebastien.Roy@Sun.COMOBJECTS = $(MAC_IPV6_OBJS:%=$(OBJS_DIR)/%) 40*10616SSebastien.Roy@Sun.COMLINTS = $(MAC_IPV6_OBJS:%.o=$(LINTS_DIR)/%.ln) 41*10616SSebastien.Roy@Sun.COMROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE) 42*10616SSebastien.Roy@Sun.COM 43*10616SSebastien.Roy@Sun.COM# 44*10616SSebastien.Roy@Sun.COM# Include common rules. 45*10616SSebastien.Roy@Sun.COM# 46*10616SSebastien.Roy@Sun.COMinclude $(UTSBASE)/intel/Makefile.intel 47*10616SSebastien.Roy@Sun.COM 48*10616SSebastien.Roy@Sun.COM# 49*10616SSebastien.Roy@Sun.COM# Define targets 50*10616SSebastien.Roy@Sun.COM# 51*10616SSebastien.Roy@Sun.COMALL_TARGET = $(BINARY) 52*10616SSebastien.Roy@Sun.COMLINT_TARGET = $(MODULE).lint 53*10616SSebastien.Roy@Sun.COMINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54*10616SSebastien.Roy@Sun.COM 55*10616SSebastien.Roy@Sun.COM# 56*10616SSebastien.Roy@Sun.COM# Overrides. 57*10616SSebastien.Roy@Sun.COM# 58*10616SSebastien.Roy@Sun.COMCFLAGS += $(CCVERBOSE) 59*10616SSebastien.Roy@Sun.COMLDFLAGS += -dy -Nmisc/mac -Nmac/mac_ipv4 60*10616SSebastien.Roy@Sun.COM 61*10616SSebastien.Roy@Sun.COMLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 62*10616SSebastien.Roy@Sun.COMLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 63*10616SSebastien.Roy@Sun.COM 64*10616SSebastien.Roy@Sun.COM# 65*10616SSebastien.Roy@Sun.COM# Default build targets. 66*10616SSebastien.Roy@Sun.COM# 67*10616SSebastien.Roy@Sun.COM.KEEP_STATE: 68*10616SSebastien.Roy@Sun.COM 69*10616SSebastien.Roy@Sun.COMdef: $(DEF_DEPS) 70*10616SSebastien.Roy@Sun.COM 71*10616SSebastien.Roy@Sun.COMall: $(ALL_DEPS) 72*10616SSebastien.Roy@Sun.COM 73*10616SSebastien.Roy@Sun.COMclean: $(CLEAN_DEPS) 74*10616SSebastien.Roy@Sun.COM 75*10616SSebastien.Roy@Sun.COMclobber: $(CLOBBER_DEPS) 76*10616SSebastien.Roy@Sun.COM 77*10616SSebastien.Roy@Sun.COMlint: $(LINT_DEPS) 78*10616SSebastien.Roy@Sun.COM 79*10616SSebastien.Roy@Sun.COMmodlintlib: $(MODLINTLIB_DEPS) 80*10616SSebastien.Roy@Sun.COM 81*10616SSebastien.Roy@Sun.COMclean.lint: $(CLEAN_LINT_DEPS) 82*10616SSebastien.Roy@Sun.COM 83*10616SSebastien.Roy@Sun.COMinstall: $(INSTALL_DEPS) 84*10616SSebastien.Roy@Sun.COM 85*10616SSebastien.Roy@Sun.COM# 86*10616SSebastien.Roy@Sun.COM# Include common targets. 87*10616SSebastien.Roy@Sun.COM# 88*10616SSebastien.Roy@Sun.COMinclude $(UTSBASE)/intel/Makefile.targ 89