14eaa4710SRishi Srivatsavai# 24eaa4710SRishi Srivatsavai# CDDL HEADER START 34eaa4710SRishi Srivatsavai# 44eaa4710SRishi Srivatsavai# The contents of this file are subject to the terms of the 54eaa4710SRishi Srivatsavai# Common Development and Distribution License (the "License"). 64eaa4710SRishi Srivatsavai# You may not use this file except in compliance with the License. 74eaa4710SRishi Srivatsavai# 84eaa4710SRishi Srivatsavai# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94eaa4710SRishi Srivatsavai# or http://www.opensolaris.org/os/licensing. 104eaa4710SRishi Srivatsavai# See the License for the specific language governing permissions 114eaa4710SRishi Srivatsavai# and limitations under the License. 124eaa4710SRishi Srivatsavai# 134eaa4710SRishi Srivatsavai# When distributing Covered Code, include this CDDL HEADER in each 144eaa4710SRishi Srivatsavai# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154eaa4710SRishi Srivatsavai# If applicable, add the following below this CDDL HEADER, with the 164eaa4710SRishi Srivatsavai# fields enclosed by brackets "[]" replaced with your own identifying 174eaa4710SRishi Srivatsavai# information: Portions Copyright [yyyy] [name of copyright owner] 184eaa4710SRishi Srivatsavai# 194eaa4710SRishi Srivatsavai# CDDL HEADER END 204eaa4710SRishi Srivatsavai# 214eaa4710SRishi Srivatsavai# 224eaa4710SRishi Srivatsavai# uts/intel/trill/Makefile 234eaa4710SRishi Srivatsavai# 244eaa4710SRishi Srivatsavai# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 254eaa4710SRishi Srivatsavai# Use is subject to license terms. 264eaa4710SRishi Srivatsavai# 274eaa4710SRishi Srivatsavai# This makefile drives the production of the TRILL socket kernel 284eaa4710SRishi Srivatsavai# module. 294eaa4710SRishi Srivatsavai# 304eaa4710SRishi Srivatsavai# intel architecture dependent 314eaa4710SRishi Srivatsavai# 324eaa4710SRishi Srivatsavai 334eaa4710SRishi Srivatsavai# 344eaa4710SRishi Srivatsavai# Path to the base of the uts directory tree (usually /usr/src/uts). 354eaa4710SRishi Srivatsavai# 364eaa4710SRishi SrivatsavaiUTSBASE = ../.. 374eaa4710SRishi Srivatsavai 384eaa4710SRishi Srivatsavai# 394eaa4710SRishi Srivatsavai# Define the module and object file sets. 404eaa4710SRishi Srivatsavai# 414eaa4710SRishi SrivatsavaiMODULE = trill 424eaa4710SRishi SrivatsavaiOBJECTS = $(TRILL_OBJS:%=$(OBJS_DIR)/%) 434eaa4710SRishi SrivatsavaiLINTS = $(TRILL_OBJS:%.o=$(LINTS_DIR)/%.ln) 444eaa4710SRishi SrivatsavaiROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 454eaa4710SRishi Srivatsavai 464eaa4710SRishi Srivatsavai# 474eaa4710SRishi Srivatsavai# Include common rules. 484eaa4710SRishi Srivatsavai# 494eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.intel 504eaa4710SRishi Srivatsavai 51*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 52*7014882cSRichard Lowe 534eaa4710SRishi Srivatsavai# 544eaa4710SRishi Srivatsavai# Define targets 554eaa4710SRishi Srivatsavai# 564eaa4710SRishi SrivatsavaiALL_TARGET = $(BINARY) 574eaa4710SRishi SrivatsavaiLINT_TARGET = $(MODULE).lint 584eaa4710SRishi SrivatsavaiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 594eaa4710SRishi Srivatsavai 604eaa4710SRishi Srivatsavai# 614eaa4710SRishi Srivatsavai# Overrides. 624eaa4710SRishi Srivatsavai# 634eaa4710SRishi SrivatsavaiCFLAGS += $(CCVERBOSE) 644eaa4710SRishi SrivatsavaiLDFLAGS += -dy -Ndrv/bridge -Nmisc/mac -Nmisc/dls -Nfs/sockfs 654eaa4710SRishi Srivatsavai 664eaa4710SRishi Srivatsavai# 674eaa4710SRishi Srivatsavai# Default build targets. 684eaa4710SRishi Srivatsavai# 694eaa4710SRishi Srivatsavai.KEEP_STATE: 704eaa4710SRishi Srivatsavai 714eaa4710SRishi Srivatsavaidef: $(DEF_DEPS) 724eaa4710SRishi Srivatsavai 734eaa4710SRishi Srivatsavaiall: $(ALL_DEPS) 744eaa4710SRishi Srivatsavai 754eaa4710SRishi Srivatsavaiclean: $(CLEAN_DEPS) 764eaa4710SRishi Srivatsavai 774eaa4710SRishi Srivatsavaiclobber: $(CLOBBER_DEPS) 784eaa4710SRishi Srivatsavai 794eaa4710SRishi Srivatsavailint: $(LINT_DEPS) 804eaa4710SRishi Srivatsavai 814eaa4710SRishi Srivatsavaimodlintlib: $(MODLINTLIB_DEPS) 824eaa4710SRishi Srivatsavai 834eaa4710SRishi Srivatsavaiclean.lint: $(CLEAN_LINT_DEPS) 844eaa4710SRishi Srivatsavai 854eaa4710SRishi Srivatsavaiinstall: $(INSTALL_DEPS) 864eaa4710SRishi Srivatsavai 874eaa4710SRishi Srivatsavai# 884eaa4710SRishi Srivatsavai# Include common targets. 894eaa4710SRishi Srivatsavai# 904eaa4710SRishi Srivatsavaiinclude $(UTSBASE)/intel/Makefile.targ 91