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