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