12b24ab6bSSebastien Roy# 22b24ab6bSSebastien Roy# CDDL HEADER START 32b24ab6bSSebastien Roy# 42b24ab6bSSebastien Roy# The contents of this file are subject to the terms of the 52b24ab6bSSebastien Roy# Common Development and Distribution License (the "License"). 62b24ab6bSSebastien Roy# You may not use this file except in compliance with the License. 72b24ab6bSSebastien Roy# 82b24ab6bSSebastien Roy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92b24ab6bSSebastien Roy# or http://www.opensolaris.org/os/licensing. 102b24ab6bSSebastien Roy# See the License for the specific language governing permissions 112b24ab6bSSebastien Roy# and limitations under the License. 122b24ab6bSSebastien Roy# 132b24ab6bSSebastien Roy# When distributing Covered Code, include this CDDL HEADER in each 142b24ab6bSSebastien Roy# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152b24ab6bSSebastien Roy# If applicable, add the following below this CDDL HEADER, with the 162b24ab6bSSebastien Roy# fields enclosed by brackets "[]" replaced with your own identifying 172b24ab6bSSebastien Roy# information: Portions Copyright [yyyy] [name of copyright owner] 182b24ab6bSSebastien Roy# 192b24ab6bSSebastien Roy# CDDL HEADER END 202b24ab6bSSebastien Roy# 212b24ab6bSSebastien Roy# 222b24ab6bSSebastien Roy# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232b24ab6bSSebastien Roy# Use is subject to license terms. 242b24ab6bSSebastien Roy# 252b24ab6bSSebastien Roy# This makefile drives the production of the mac_ipv4 plugin 262b24ab6bSSebastien Roy# kernel module. 272b24ab6bSSebastien Roy# 282b24ab6bSSebastien Roy 292b24ab6bSSebastien Roy# 302b24ab6bSSebastien Roy# Path to the base of the uts directory tree (usually /usr/src/uts). 312b24ab6bSSebastien Roy# 322b24ab6bSSebastien RoyUTSBASE = ../.. 332b24ab6bSSebastien Roy 342b24ab6bSSebastien Roy# 352b24ab6bSSebastien Roy# Define the module and object file sets. 362b24ab6bSSebastien Roy# 372b24ab6bSSebastien RoyMODULE = mac_ipv4 382b24ab6bSSebastien RoyOBJECTS = $(MAC_IPV4_OBJS:%=$(OBJS_DIR)/%) 392b24ab6bSSebastien RoyROOTMODULE = $(ROOT_MAC_DIR)/$(MODULE) 402b24ab6bSSebastien Roy 412b24ab6bSSebastien Roy# 422b24ab6bSSebastien Roy# Include common rules. 432b24ab6bSSebastien Roy# 442b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel 452b24ab6bSSebastien Roy 462b24ab6bSSebastien Roy# 472b24ab6bSSebastien Roy# Define targets 482b24ab6bSSebastien Roy# 492b24ab6bSSebastien RoyALL_TARGET = $(BINARY) 502b24ab6bSSebastien RoyINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 512b24ab6bSSebastien Roy 522b24ab6bSSebastien Roy# 532b24ab6bSSebastien Roy# Overrides. 542b24ab6bSSebastien Roy# 552b24ab6bSSebastien RoyCFLAGS += $(CCVERBOSE) 56*82d0151aSRichard LoweLDFLAGS += -Nmisc/mac 572b24ab6bSSebastien Roy 582b24ab6bSSebastien Roy 592b24ab6bSSebastien Roy# 602b24ab6bSSebastien Roy# Default build targets. 612b24ab6bSSebastien Roy# 622b24ab6bSSebastien Roy.KEEP_STATE: 632b24ab6bSSebastien Roy 642b24ab6bSSebastien Roydef: $(DEF_DEPS) 652b24ab6bSSebastien Roy 662b24ab6bSSebastien Royall: $(ALL_DEPS) 672b24ab6bSSebastien Roy 682b24ab6bSSebastien Royclean: $(CLEAN_DEPS) 692b24ab6bSSebastien Roy 702b24ab6bSSebastien Royclobber: $(CLOBBER_DEPS) 712b24ab6bSSebastien Roy 722b24ab6bSSebastien Royinstall: $(INSTALL_DEPS) 732b24ab6bSSebastien Roy 742b24ab6bSSebastien Roy# 752b24ab6bSSebastien Roy# Include common targets. 762b24ab6bSSebastien Roy# 772b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ 78