1fea9cb91Slq150181# 2fea9cb91Slq150181# CDDL HEADER START 3fea9cb91Slq150181# 4fea9cb91Slq150181# The contents of this file are subject to the terms of the 5fea9cb91Slq150181# Common Development and Distribution License (the "License"). 6fea9cb91Slq150181# You may not use this file except in compliance with the License. 7fea9cb91Slq150181# 8fea9cb91Slq150181# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9fea9cb91Slq150181# or http://www.opensolaris.org/os/licensing. 10fea9cb91Slq150181# See the License for the specific language governing permissions 11fea9cb91Slq150181# and limitations under the License. 12fea9cb91Slq150181# 13fea9cb91Slq150181# When distributing Covered Code, include this CDDL HEADER in each 14fea9cb91Slq150181# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fea9cb91Slq150181# If applicable, add the following below this CDDL HEADER, with the 16fea9cb91Slq150181# fields enclosed by brackets "[]" replaced with your own identifying 17fea9cb91Slq150181# information: Portions Copyright [yyyy] [name of copyright owner] 18fea9cb91Slq150181# 19fea9cb91Slq150181# CDDL HEADER END 20fea9cb91Slq150181# 21fea9cb91Slq150181 22fea9cb91Slq150181# 23aecfc01dSrui zang - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24fea9cb91Slq150181# Use is subject to license terms. 25fea9cb91Slq150181# 26fea9cb91Slq150181# This makefile drives the production of the tem module 27fea9cb91Slq150181# 28fea9cb91Slq150181# intel implementation architecture dependent 29fea9cb91Slq150181# 30fea9cb91Slq150181 31fea9cb91Slq150181# 32fea9cb91Slq150181# Path to the base of the uts directory tree (usually /usr/src/uts). 33fea9cb91Slq150181# 34fea9cb91Slq150181UTSBASE = ../.. 35fea9cb91Slq150181 36fea9cb91Slq150181# 37fea9cb91Slq150181# Define the module and object file sets. 38fea9cb91Slq150181# 39fea9cb91Slq150181MODULE = tem 40fea9cb91Slq150181OBJECTS = $(TEM_OBJS:%=$(OBJS_DIR)/%) 41fea9cb91Slq150181LINTS = $(TEM_OBJS:%.o=$(LINTS_DIR)/%.ln) 42fea9cb91Slq150181ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 43aecfc01dSrui zang - Sun Microsystems - Beijing ChinaWARLOCK_OUT = $(TEM_OBJS:%.o=%.ll) 44aecfc01dSrui zang - Sun Microsystems - Beijing ChinaWARLOCK_OK = $(MODULE).ok 45aecfc01dSrui zang - Sun Microsystems - Beijing ChinaWLCMD_DIR = $(UTSBASE)/common/io/warlock 46fea9cb91Slq150181 47fea9cb91Slq150181# 48fea9cb91Slq150181# Include common rules. 49fea9cb91Slq150181# 50fea9cb91Slq150181include $(UTSBASE)/intel/Makefile.intel 51fea9cb91Slq150181 52fea9cb91Slq150181# 53fea9cb91Slq150181# Define targets 54fea9cb91Slq150181# 55fea9cb91Slq150181ALL_TARGET = $(BINARY) 56fea9cb91Slq150181LINT_TARGET = $(MODULE).lint 57fea9cb91Slq150181INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58fea9cb91Slq150181 59fea9cb91Slq150181LDFLAGS += -dy -Ndacf/consconfig_dacf 60fea9cb91Slq150181 61fea9cb91Slq150181# 62bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 63bb25c06cSjg# to investigate and remove these for maximum lint coverage. 64bb25c06cSjg# Please do not carry these forward to new Makefiles. 65bb25c06cSjg# 66bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 67bb25c06cSjg 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 70*7014882cSRichard Lowe 71bb25c06cSjg# 72fea9cb91Slq150181# Default build targets. 73fea9cb91Slq150181# 74fea9cb91Slq150181.KEEP_STATE: 75fea9cb91Slq150181 76fea9cb91Slq150181def: $(DEF_DEPS) 77fea9cb91Slq150181 78fea9cb91Slq150181all: $(ALL_DEPS) 79fea9cb91Slq150181 80fea9cb91Slq150181clean: $(CLEAN_DEPS) 81fea9cb91Slq150181 82fea9cb91Slq150181clobber: $(CLOBBER_DEPS) 83fea9cb91Slq150181 84fea9cb91Slq150181lint: $(LINT_DEPS) 85fea9cb91Slq150181 86fea9cb91Slq150181modlintlib: $(MODLINTLIB_DEPS) 87fea9cb91Slq150181 88fea9cb91Slq150181clean.lint: $(CLEAN_LINT_DEPS) 89fea9cb91Slq150181 90fea9cb91Slq150181install: $(INSTALL_DEPS) 91fea9cb91Slq150181 92fea9cb91Slq150181# 93fea9cb91Slq150181# Include common targets. 94fea9cb91Slq150181# 95fea9cb91Slq150181include $(UTSBASE)/intel/Makefile.targ 96aecfc01dSrui zang - Sun Microsystems - Beijing China 97aecfc01dSrui zang - Sun Microsystems - Beijing China# 98aecfc01dSrui zang - Sun Microsystems - Beijing China# Defines for local commands 99aecfc01dSrui zang - Sun Microsystems - Beijing China# 100aecfc01dSrui zang - Sun Microsystems - Beijing ChinaTEST = test 101aecfc01dSrui zang - Sun Microsystems - Beijing ChinaWLCC = wlcc 102aecfc01dSrui zang - Sun Microsystems - Beijing ChinaTOUCH = touch 103aecfc01dSrui zang - Sun Microsystems - Beijing ChinaWARLOCK = warlock 104aecfc01dSrui zang - Sun Microsystems - Beijing China 105aecfc01dSrui zang - Sun Microsystems - Beijing China# 106aecfc01dSrui zang - Sun Microsystems - Beijing China# warlock targets 107aecfc01dSrui zang - Sun Microsystems - Beijing China# 108aecfc01dSrui zang - Sun Microsystems - Beijing China 109aecfc01dSrui zang - Sun Microsystems - Beijing Chinawarlock: $(WARLOCK_OUT) warlock_ddi.files 110aecfc01dSrui zang - Sun Microsystems - Beijing China $(WARLOCK) -c $(WLCMD_DIR)/tem.wlcmd $(WARLOCK_OUT) \ 111aecfc01dSrui zang - Sun Microsystems - Beijing China -l ../../intel/warlock/ddi_dki_impl.ll 112aecfc01dSrui zang - Sun Microsystems - Beijing China $(TOUCH) $(WARLOCK_OK) 113aecfc01dSrui zang - Sun Microsystems - Beijing China 114aecfc01dSrui zang - Sun Microsystems - Beijing China%.ll: $(UTSBASE)/common/io/%.c 115aecfc01dSrui zang - Sun Microsystems - Beijing China $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 116aecfc01dSrui zang - Sun Microsystems - Beijing China 117aecfc01dSrui zang - Sun Microsystems - Beijing Chinawarlock_ddi.files: 118aecfc01dSrui zang - Sun Microsystems - Beijing China @cd ../../intel/warlock; pwd; $(MAKE) warlock 119