Makefile revision b509e89b2befbaa42939abad9da1d7f5a8c6aaae
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# CDDL HEADER START
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# The contents of this file are subject to the terms of the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Common Development and Distribution License (the "License").
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You may not use this file except in compliance with the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# or http://www.opensolaris.org/os/licensing.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# See the License for the specific language governing permissions
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# and limitations under the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# If applicable, add the following below this CDDL HEADER, with the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# CDDL HEADER END
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# Use is subject to license terms.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# Path to the base of the uts directory tree (usually /usr/src/uts).
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
9fbefe0ace2ae7dba287f914b278153004bef428Bob HalleyUTSBASE = ../..
9fbefe0ace2ae7dba287f914b278153004bef428Bob Halley
9fbefe0ace2ae7dba287f914b278153004bef428Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# Define the module and object file sets.
9fbefe0ace2ae7dba287f914b278153004bef428Bob Halley#
9fbefe0ace2ae7dba287f914b278153004bef428Bob HalleyMODULE = simnet
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob HalleyOBJECTS = $(SIMNET_OBJS:%=$(OBJS_DIR)/%)
9fbefe0ace2ae7dba287f914b278153004bef428Bob HalleyLINTS = $(SIMNET_OBJS:%.o=$(LINTS_DIR)/%.ln)
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob HalleyROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob HalleyCONF_SRCDIR = $(UTSBASE)/common/io/$(MODULE)
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# Include common rules.
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides
#
CFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/random
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ