xref: /illumos-gate/usr/src/uts/intel/smp/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1936b7af6Sjw149990#
2936b7af6Sjw149990# CDDL HEADER START
3936b7af6Sjw149990#
4936b7af6Sjw149990# The contents of this file are subject to the terms of the
5936b7af6Sjw149990# Common Development and Distribution License (the "License").
6936b7af6Sjw149990# You may not use this file except in compliance with the License.
7936b7af6Sjw149990#
8936b7af6Sjw149990# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9936b7af6Sjw149990# or http://www.opensolaris.org/os/licensing.
10936b7af6Sjw149990# See the License for the specific language governing permissions
11936b7af6Sjw149990# and limitations under the License.
12936b7af6Sjw149990#
13936b7af6Sjw149990# When distributing Covered Code, include this CDDL HEADER in each
14936b7af6Sjw149990# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15936b7af6Sjw149990# If applicable, add the following below this CDDL HEADER, with the
16936b7af6Sjw149990# fields enclosed by brackets "[]" replaced with your own identifying
17936b7af6Sjw149990# information: Portions Copyright [yyyy] [name of copyright owner]
18936b7af6Sjw149990#
19936b7af6Sjw149990# CDDL HEADER END
20936b7af6Sjw149990#
21936b7af6Sjw149990
22936b7af6Sjw149990#
23936b7af6Sjw149990# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24936b7af6Sjw149990# Use is subject to license terms.
25936b7af6Sjw149990#
26936b7af6Sjw149990
27936b7af6Sjw149990#
28936b7af6Sjw149990# This makefile drives the production of the smp driver.
29936b7af6Sjw149990# intel architecture dependent
30936b7af6Sjw149990#
31936b7af6Sjw149990
32936b7af6Sjw149990#
33936b7af6Sjw149990#	Paths to the base of the uts directory trees
34936b7af6Sjw149990#
35936b7af6Sjw149990UTSBASE   = ../..
36936b7af6Sjw149990
37936b7af6Sjw149990#
38936b7af6Sjw149990# Define the module and object file sets.
39936b7af6Sjw149990#
40936b7af6Sjw149990MODULE		= smp
41936b7af6Sjw149990OBJECTS		= $(SMP_OBJS:%=$(OBJS_DIR)/%)
42936b7af6Sjw149990ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43936b7af6Sjw149990CONF_SRCDIR	= $(UTSBASE)/common/io/scsi/targets
44936b7af6Sjw149990
45936b7af6Sjw149990#
46936b7af6Sjw149990# Include common rules.
47936b7af6Sjw149990#
48936b7af6Sjw149990include $(UTSBASE)/intel/Makefile.intel
49936b7af6Sjw149990
50936b7af6Sjw149990#
51936b7af6Sjw149990# Define targets.
52936b7af6Sjw149990#
53936b7af6Sjw149990ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
54936b7af6Sjw149990INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
55936b7af6Sjw149990
56936b7af6Sjw149990#
57936b7af6Sjw149990# Note dependancy on misc/scsi.
58936b7af6Sjw149990#
59*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi
60936b7af6Sjw149990
61936b7af6Sjw149990#
62936b7af6Sjw149990# Default build targets.
63936b7af6Sjw149990#
64936b7af6Sjw149990.KEEP_STATE:
65936b7af6Sjw149990
66936b7af6Sjw149990def:		$(DEF_DEPS)
67936b7af6Sjw149990
68936b7af6Sjw149990all:		$(ALL_DEPS)
69936b7af6Sjw149990
70936b7af6Sjw149990clean:		$(CLEAN_DEPS)
71936b7af6Sjw149990
72936b7af6Sjw149990clobber:	$(CLOBBER_DEPS)
73936b7af6Sjw149990
74936b7af6Sjw149990install:	$(INSTALL_DEPS)
75936b7af6Sjw149990
76936b7af6Sjw149990#
77936b7af6Sjw149990# Include common targets.
78936b7af6Sjw149990#
79936b7af6Sjw149990include $(UTSBASE)/intel/Makefile.targ
80