Makefile revision aecfc01d1bad84e66649703f7fc2926ef70b34ba
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# CDDL HEADER START
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# The contents of this file are subject to the terms of the
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Common Development and Distribution License (the "License").
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# You may not use this file except in compliance with the License.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# or http://www.opensolaris.org/os/licensing.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# See the License for the specific language governing permissions
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# and limitations under the License.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# When distributing Covered Code, include this CDDL HEADER in each
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# If applicable, add the following below this CDDL HEADER, with the
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# fields enclosed by brackets "[]" replaced with your own identifying
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# information: Portions Copyright [yyyy] [name of copyright owner]
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# CDDL HEADER END
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Use is subject to license terms.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# This makefile drives the production of the tem module
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# intel implementation architecture dependent
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Path to the base of the uts directory tree (usually /usr/src/uts).
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlUTSBASE = ../..
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Define the module and object file sets.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
50c9d542e8bf641412debaa82a4dcf67ddb72258Lukas SlebodnikMODULE = tem
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlOBJECTS = $(TEM_OBJS:%=$(OBJS_DIR)/%)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlLINTS = $(TEM_OBJS:%.o=$(LINTS_DIR)/%.ln)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlWARLOCK_OUT = $(TEM_OBJS:%.o=%.ll)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlWARLOCK_OK = $(MODULE).ok
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlWLCMD_DIR = $(UTSBASE)/common/io/warlock
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Include common rules.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlinclude $(UTSBASE)/intel/Makefile.intel
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Define targets
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlALL_TARGET = $(BINARY)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlLINT_TARGET = $(MODULE).lint
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlLDFLAGS += -dy -Ndacf/consconfig_dacf
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# For now, disable these lint checks; maintainers should endeavor
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# to investigate and remove these for maximum lint coverage.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Please do not carry these forward to new Makefiles.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlLINTTAGS += -erroff=E_STATIC_UNUSED
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Default build targets.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl.KEEP_STATE:
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichldef: $(DEF_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlall: $(ALL_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlclean: $(CLEAN_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlclobber: $(CLOBBER_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichllint: $(LINT_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlmodlintlib: $(MODLINTLIB_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlclean.lint: $(CLEAN_LINT_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlinstall: $(INSTALL_DEPS)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Include common targets.
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlinclude $(UTSBASE)/intel/Makefile.targ
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# Defines for local commands
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlTEST = test
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlWLCC = wlcc
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlTOUCH = touch
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel ReichlWARLOCK = warlock
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl# warlock targets
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl#
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlwarlock: $(WARLOCK_OUT) warlock_ddi.files
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl $(WARLOCK) -c $(WLCMD_DIR)/tem.wlcmd $(WARLOCK_OUT) \
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl -l ../../intel/warlock/ddi_dki_impl.ll
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl $(TOUCH) $(WARLOCK_OK)
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl%.ll: $(UTSBASE)/common/io/%.c
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichlwarlock_ddi.files:
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl @cd ../../intel/warlock; pwd; $(MAKE) warlock
e2e334b2f51118cb14c7391c4e4e44ff247ef638Pavel Reichl