Makefile revision aecfc01d1bad84e66649703f7fc2926ef70b34ba
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# CDDL HEADER START
b227f89b8c13b15a9372ce56713c024f7f73be35Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# The contents of this file are subject to the terms of the
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# Common Development and Distribution License (the "License").
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# You may not use this file except in compliance with the License.
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen#
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco# or http://www.opensolaris.org/os/licensing.
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# See the License for the specific language governing permissions
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# and limitations under the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# If applicable, add the following below this CDDL HEADER, with the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
bcae302a5f4b516d2f3c05f657df054e1a0efde7Knut Anders Hatlen# information: Portions Copyright [yyyy] [name of copyright owner]
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
98774b0b90e4da0f3f2c5e4856bcbbf366ed0fe0Knut Anders Hatlen# CDDL HEADER END
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
afb218f076cae538126a5f931299a82a114a075aKnut Anders Hatlen# Use is subject to license terms.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# This makefile drives the production of the tem module
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# sparc implementation architecture dependent
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# Path to the base of the uts directory tree (usually /usr/src/uts).
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders HatlenUTSBASE = ../..
bbb39d08c0e5b73c89ba813a7c1789842c60f961Lubos Kosco
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# Define the module and object file sets.
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen#
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeMODULE = tem
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeOBJECTS = $(TEM_OBJS:%=$(OBJS_DIR)/%)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeLINTS = $(TEM_OBJS:%.o=$(LINTS_DIR)/%.ln)
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders HatlenWARLOCK_OUT = $(TEM_OBJS:%.o=%.ll)
bbb39d08c0e5b73c89ba813a7c1789842c60f961Lubos KoscoWARLOCK_OK = $(MODULE).ok
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders HatlenWLCMD_DIR = $(UTSBASE)/common/io/warlock
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
ca37bb3c4127b35d333203398bd983ee730d9da5Jan S Berg#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# Include common rules.
a458f50391086e92efb1275d8848ff3b83237abeKnut Anders Hatlen#
ca37bb3c4127b35d333203398bd983ee730d9da5Jan S Berginclude $(UTSBASE)/sparc/Makefile.sparc
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Define targets
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos KoscoALL_TARGET = $(BINARY)
301b95653d1ea543522ddd6be61572b2093b8fa3Knut Anders HatlenLINT_TARGET = $(MODULE).lint
301b95653d1ea543522ddd6be61572b2093b8fa3Knut Anders HatlenINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeCFLAGS += $(CCVERBOSE)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders HatlenLDFLAGS += -dy -Ndacf/consconfig_dacf
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders Hatlen
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# For now, disable these lint checks; maintainers should endeavor
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# to investigate and remove these for maximum lint coverage.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Please do not carry these forward to new Makefiles.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeLINTTAGS += -erroff=E_STATIC_UNUSED
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Default build targets.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye.KEEP_STATE:
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyedef: $(DEF_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeall: $(ALL_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeclean: $(CLEAN_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeclobber: $(CLOBBER_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyelint: $(LINT_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyemodlintlib: $(MODLINTLIB_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeclean.lint: $(CLEAN_LINT_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeinstall: $(INSTALL_DEPS)
8d5c49b3d8edaa0069e4f802cf8bd70af9994c35Knut Anders Hatlen
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Include common targets.
25fddb6fbc2130e3847315ff2b0b6819ff3feccaLubos Kosco#
25fddb6fbc2130e3847315ff2b0b6819ff3feccaLubos Koscoinclude $(UTSBASE)/sparc/Makefile.targ
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Defines for local commands
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
TEST = test
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# warlock targets
#
warlock: $(WARLOCK_OUT) warlock_ddi.files
$(WARLOCK) -c $(WLCMD_DIR)/tem.wlcmd $(WARLOCK_OUT) \
-l ../../sparc/warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../../sparc/warlock; pwd; $(MAKE) warlock