Makefile revision 9acbbeaf2a1ffe5c14b244867d427714fab43c5c
00ca39daf18414d50f8d3ab55b72c0c13346153eMark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# The contents of this file are subject to the terms of the
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews# Common Development and Distribution License (the "License").
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# You may not use this file except in compliance with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# and limitations under the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# CDDL HEADER END
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# uts/intel/lx_ptm/Makefile
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# Use is subject to license terms.
b3651a8e87c12ea0428eeb5cf4b304be5bcd9db0Brian Wellington#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#pragma ident "%Z%%M% %I% %E% SMI"
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# This makefile drives the production of the lx_ptm driver
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# intel architecture dependent
bfe7da9c6b20573c2da09ad2e7cac0a54c8cd47bMark Andrews#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsUTSBASE = ../..
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews#
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews# Define the module and object file sets.
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews#
0e780f132d725c59bae021b6c0bcb34b800a9230Mark AndrewsMODULE = lx_ptm
0e780f132d725c59bae021b6c0bcb34b800a9230Mark AndrewsOBJECTS = $(LX_PTM_OBJS:%=$(OBJS_DIR)/%)
0e780f132d725c59bae021b6c0bcb34b800a9230Mark AndrewsLINTS = $(LX_PTM_OBJS:%.o=$(LINTS_DIR)/%.ln)
0e780f132d725c59bae021b6c0bcb34b800a9230Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0e780f132d725c59bae021b6c0bcb34b800a9230Mark AndrewsCONF_SRCDIR = $(UTSBASE)/common/brand/lx/io
0e780f132d725c59bae021b6c0bcb34b800a9230Mark Andrews
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson#
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson# Include common rules.
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson#
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafssoninclude $(UTSBASE)/intel/Makefile.intel
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson#
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson# Define targets
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas GustafssonALL_TARGET = $(BINARY) $(SRC_CONFILE)
d075bd326e34600c036c905eea6c80f565ea951fAndreas GustafssonLINT_TARGET = $(MODULE).lint
d075bd326e34600c036c905eea6c80f565ea951fAndreas GustafssonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas GustafssonCPPFLAGS += -I$(UTSBASE)/common/brand/lx
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas Gustafsson#
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas Gustafsson# Default build targets.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson#
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson.KEEP_STATE:
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssondef: $(DEF_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonall: $(ALL_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonclean: $(CLEAN_DEPS)
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafsson
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafssonclobber: $(CLOBBER_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonlint: $(LINT_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
f7aa8ce0b3cf7f5df618a42beecf8d5517c000acAndreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssoninstall: $(INSTALL_DEPS)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson#
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson# Include common targets.
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafsson#
6af37648dd5e0cb407cbef1fed5255dd874e61efAndreas Gustafssoninclude $(UTSBASE)/intel/Makefile.targ
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson
2357f291c53de433c39ce844d2f0abc0bccfa9fcAndreas Gustafsson$(OBJS_DIR)/%.o: $(UTSBASE)/common/brand/lx/io/%.c
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson $(COMPILE.c) -o $@ $<
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson $(CTFCONVERT_O)
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson$(LINTS_DIR)/%.ln: $(UTSBASE)/common/brand/lx/io/%.c
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson @($(LHEAD) $(LINT.c) $< $(LTAIL))
3d4a70fe38769e42b943717256208b63fec05f32Andreas Gustafsson