Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# The contents of this file are subject to the terms of the
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# ident "%Z%%M% %I% %E% SMI"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# This makefile drives the production of the scfd driver
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# loadable module.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# sun4u opl implementation architecture dependent
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# uts/sun4u/opl/scf/Makefile
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic UpdaterUTSBASE = ../../..
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
bbb069be941f649228760edcc241122933c066d2Automatic Updater# Define the module and object file sets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterMODULE = scfd
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsOBJECTS = $(SCFD_OBJS:%=$(OBJS_DIR)/%)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTS = $(SCFD_OBJS:%.o=$(LINTS_DIR)/%.ln)
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONF_SRCDIR = $(UTSBASE)/sun4u/opl/io/$(MODULE)
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Include common rules.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude $(UTSBASE)/sun4u/opl/Makefile.opl
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Define targets
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonALL_TARGET = $(BINARY) $(SRC_CONFFILE)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLINT_TARGET = $(MODULE).lint
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# lint pass one enforcement
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += $(CCVERBOSE)
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Default build targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
a8644ebab678a1de66cbfaabb513651a739958afAutomatic Updater.KEEP_STATE:
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall: $(ALL_DEPS)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterdef: $(DEF_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsclean: $(CLEAN_DEPS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclobber: $(CLOBBER_DEPS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewslint: $(LINT_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updaterinstall: $(INSTALL_DEPS)
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews
2831d2c54acc60414e9ffaf5c702ba475f06754bMark Andrews#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# Include common targets.
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updaterinclude $(UTSBASE)/sun4u/opl/Makefile.targ
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater