Makefile revision 3db86aab554edbb4244c8d1a1c90f152eee768af
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews#
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# or http://www.opensolaris.org/os/licensing.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# Use is subject to license terms.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#ident "%Z%%M% %I% %E% SMI"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# This makefile drives the production of the rmclomv driver kernel
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# module in the sun4u systems
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonUTSBASE = ../..
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Define the module and object file sets.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE = rmclomv
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterOBJECTS = $(RMCLOMV_OBJS:%=$(OBJS_DIR)/%)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTS = $(RMCLOMV_OBJS:%.o=$(LINTS_DIR)/%.ln)
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterCONF_SRCDIR = $(UTSBASE)/sun4u/io
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Include common rules.
c0b771f68361b073388b85a689c12cbe502880eeAutomatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsinclude $(UTSBASE)/sun4u/Makefile.sun4u
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Define targets
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsLINT_TARGET = $(MODULE).lint
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# lint pass one enforcement
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCFLAGS += $(CCVERBOSE)
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterLDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater#
55e03fc54708d97917bf26639b987f759bdc1f44Automatic Updater# Turn on doubleword alignment for 64 bit registers
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater#
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCFLAGS += -dalign
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Default build targets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updaterdef: $(DEF_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall: $(ALL_DEPS)
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updaterclean: $(CLEAN_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterclobber: $(CLOBBER_DEPS)
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewslint: $(LINT_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updaterinstall: $(INSTALL_DEPS)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Include common targets.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinclude $(UTSBASE)/sun4u/Makefile.targ
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson