Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# CDDL HEADER START
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# The contents of this file are subject to the terms of the
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# Common Development and Distribution License (the "License").
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# You may not use this file except in compliance with the License.
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder#
87e1c83f10355e0fe80761367b75f83bc682770aTill Mossakowski# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a7fd2cfb9493db122a449809b6d21e15f0356e8bChristian Maeder# or http://www.opensolaris.org/os/licensing.
87e1c83f10355e0fe80761367b75f83bc682770aTill Mossakowski# See the License for the specific language governing permissions
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# and limitations under the License.
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
f2eadf57e49d36f01b58ad547657140c9d50afb2Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder#
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder# CDDL HEADER END
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder#
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder# Use is subject to license terms.
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder#
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder#
947d21ed43ec33fac7c3772470d984479ee5f64aChristian Maeder# Path to the base of the uts directory tree (usually /usr/src/uts).
dce6436c6ad1863558c14e15b0ff2d5a0bdd45b4Christian Maeder#
947d21ed43ec33fac7c3772470d984479ee5f64aChristian MaederUTSBASE = ../..
f63a335a037098b08817e7137087d42240be74c1Christian Maeder
ceee56b395227c495432d0f3baa407730d7a09d2Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder# Define the module and object file sets.
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian MaederMODULE = simnet
f2eadf57e49d36f01b58ad547657140c9d50afb2Christian MaederOBJECTS = $(SIMNET_OBJS:%=$(OBJS_DIR)/%)
f2eadf57e49d36f01b58ad547657140c9d50afb2Christian MaederLINTS = $(SIMNET_OBJS:%.o=$(LINTS_DIR)/%.ln)
e472118997ef12138109ffa93a265292c5d20a6cChristian MaederROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
f2eadf57e49d36f01b58ad547657140c9d50afb2Christian MaederCONF_SRCDIR = $(UTSBASE)/common/io/$(MODULE)
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maeder
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maeder#
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maeder# Include common rules.
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maeder#
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maederinclude $(UTSBASE)/intel/Makefile.intel
f2702f0db4fab72edae97be5132f54c2a32a0283Christian Maeder
f2eadf57e49d36f01b58ad547657140c9d50afb2Christian Maeder#
947d21ed43ec33fac7c3772470d984479ee5f64aChristian Maeder# Define targets
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
5f184698e58f31e670c54c12d858a7c7322277b4Christian MaederALL_TARGET = $(BINARY) $(SRC_CONFILE)
a7fd2cfb9493db122a449809b6d21e15f0356e8bChristian MaederLINT_TARGET = $(MODULE).lint
ceee56b395227c495432d0f3baa407730d7a09d2Christian MaederINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2295e38944bfcd91b9507e2fa9abe5a561817648Till Mossakowski
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
a7fd2cfb9493db122a449809b6d21e15f0356e8bChristian Maeder# Overrides
5f184698e58f31e670c54c12d858a7c7322277b4Christian Maeder#
c68c8248d86d5bea90acaff0433ff5ab8dee0b11Christian MaederCFLAGS += $(CCVERBOSE)
LDFLAGS += -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/random
CERRWARN += -_gcc=-Wno-switch
#
# 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)/intel/Makefile.targ