1*4eaa4710SRishi Srivatsavai# 2*4eaa4710SRishi Srivatsavai# CDDL HEADER START 3*4eaa4710SRishi Srivatsavai# 4*4eaa4710SRishi Srivatsavai# The contents of this file are subject to the terms of the 5*4eaa4710SRishi Srivatsavai# Common Development and Distribution License (the "License"). 6*4eaa4710SRishi Srivatsavai# You may not use this file except in compliance with the License. 7*4eaa4710SRishi Srivatsavai# 8*4eaa4710SRishi Srivatsavai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*4eaa4710SRishi Srivatsavai# or http://www.opensolaris.org/os/licensing. 10*4eaa4710SRishi Srivatsavai# See the License for the specific language governing permissions 11*4eaa4710SRishi Srivatsavai# and limitations under the License. 12*4eaa4710SRishi Srivatsavai# 13*4eaa4710SRishi Srivatsavai# When distributing Covered Code, include this CDDL HEADER in each 14*4eaa4710SRishi Srivatsavai# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*4eaa4710SRishi Srivatsavai# If applicable, add the following below this CDDL HEADER, with the 16*4eaa4710SRishi Srivatsavai# fields enclosed by brackets "[]" replaced with your own identifying 17*4eaa4710SRishi Srivatsavai# information: Portions Copyright [yyyy] [name of copyright owner] 18*4eaa4710SRishi Srivatsavai# 19*4eaa4710SRishi Srivatsavai# CDDL HEADER END 20*4eaa4710SRishi Srivatsavai# 21*4eaa4710SRishi Srivatsavai# 22*4eaa4710SRishi Srivatsavai# uts/intel/trill/Makefile 23*4eaa4710SRishi Srivatsavai# 24*4eaa4710SRishi Srivatsavai# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25*4eaa4710SRishi Srivatsavai# Use is subject to license terms. 26*4eaa4710SRishi Srivatsavai# 27*4eaa4710SRishi Srivatsavai# This makefile drives the production of the TRILL socket kernel 28*4eaa4710SRishi Srivatsavai# module. 29*4eaa4710SRishi Srivatsavai# 30*4eaa4710SRishi Srivatsavai# intel architecture dependent 31*4eaa4710SRishi Srivatsavai# 32*4eaa4710SRishi Srivatsavai 33*4eaa4710SRishi Srivatsavai# 34*4eaa4710SRishi Srivatsavai# Path to the base of the uts directory tree (usually /usr/src/uts). 35*4eaa4710SRishi Srivatsavai# 36*4eaa4710SRishi SrivatsavaiUTSBASE = ../.. 37*4eaa4710SRishi Srivatsavai 38*4eaa4710SRishi Srivatsavai# 39*4eaa4710SRishi Srivatsavai# Define the module and object file sets. 40*4eaa4710SRishi Srivatsavai# 41*4eaa4710SRishi SrivatsavaiMODULE = trill 42*4eaa4710SRishi SrivatsavaiOBJECTS = $(TRILL_OBJS:%=$(OBJS_DIR)/%) 43*4eaa4710SRishi SrivatsavaiLINTS = $(TRILL_OBJS:%.o=$(LINTS_DIR)/%.ln) 44*4eaa4710SRishi SrivatsavaiROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 45*4eaa4710SRishi Srivatsavai 46*4eaa4710SRishi Srivatsavai# 47*4eaa4710SRishi Srivatsavai# Include common rules. 48*4eaa4710SRishi Srivatsavai# 49*4eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel 50*4eaa4710SRishi Srivatsavai 51*4eaa4710SRishi Srivatsavai# 52*4eaa4710SRishi Srivatsavai# Define targets 53*4eaa4710SRishi Srivatsavai# 54*4eaa4710SRishi SrivatsavaiALL_TARGET = $(BINARY) 55*4eaa4710SRishi SrivatsavaiLINT_TARGET = $(MODULE).lint 56*4eaa4710SRishi SrivatsavaiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57*4eaa4710SRishi Srivatsavai 58*4eaa4710SRishi Srivatsavai# 59*4eaa4710SRishi Srivatsavai# Overrides. 60*4eaa4710SRishi Srivatsavai# 61*4eaa4710SRishi SrivatsavaiCFLAGS += $(CCVERBOSE) 62*4eaa4710SRishi SrivatsavaiLDFLAGS += -dy -Ndrv/bridge -Nmisc/mac -Nmisc/dls -Nfs/sockfs 63*4eaa4710SRishi Srivatsavai 64*4eaa4710SRishi Srivatsavai# 65*4eaa4710SRishi Srivatsavai# Default build targets. 66*4eaa4710SRishi Srivatsavai# 67*4eaa4710SRishi Srivatsavai.KEEP_STATE: 68*4eaa4710SRishi Srivatsavai 69*4eaa4710SRishi Srivatsavaidef: $(DEF_DEPS) 70*4eaa4710SRishi Srivatsavai 71*4eaa4710SRishi Srivatsavaiall: $(ALL_DEPS) 72*4eaa4710SRishi Srivatsavai 73*4eaa4710SRishi Srivatsavaiclean: $(CLEAN_DEPS) 74*4eaa4710SRishi Srivatsavai 75*4eaa4710SRishi Srivatsavaiclobber: $(CLOBBER_DEPS) 76*4eaa4710SRishi Srivatsavai 77*4eaa4710SRishi Srivatsavailint: $(LINT_DEPS) 78*4eaa4710SRishi Srivatsavai 79*4eaa4710SRishi Srivatsavaimodlintlib: $(MODLINTLIB_DEPS) 80*4eaa4710SRishi Srivatsavai 81*4eaa4710SRishi Srivatsavaiclean.lint: $(CLEAN_LINT_DEPS) 82*4eaa4710SRishi Srivatsavai 83*4eaa4710SRishi Srivatsavaiinstall: $(INSTALL_DEPS) 84*4eaa4710SRishi Srivatsavai 85*4eaa4710SRishi Srivatsavai# 86*4eaa4710SRishi Srivatsavai# Include common targets. 87*4eaa4710SRishi Srivatsavai# 88*4eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ 89