xref: /titanic_44/usr/src/uts/intel/intel_nb5000/Makefile (revision f899e5733f35e45012ad40c8325b2622dcc2b673)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License (the "License").
5# You may not use this file except in compliance with the License.
6#
7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8# or http://www.opensolaris.org/os/licensing.
9# See the License for the specific language governing permissions
10# and limitations under the License.
11#
12# When distributing Covered Code, include this CDDL HEADER in each
13# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14# If applicable, add the following below this CDDL HEADER, with the
15# fields enclosed by brackets "[]" replaced with your own identifying
16# information: Portions Copyright [yyyy] [name of copyright owner]
17#
18# CDDL HEADER END
19#
20# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
21# Use is subject to license terms.
22#
23
24#
25# Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module
26#
27
28#
29#	Path to the base of the uts directory tree (usually /usr/src/uts).
30#
31UTSBASE = ../..
32UTSCLOSED = ../../../../closed/uts
33
34#
35#       Define the module and object file sets.
36#
37MODULE		= intel_nb5000
38#
39ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
40SRCDIR		= $(UTSBASE)/intel/io/intel_nb5000
41CONF_SRCDIR	= $(UTSBASE)/intel/io/intel_nb5000
42
43#
44#       Include common rules.
45#
46include ../Makefile.intel
47
48#
49# The list of object files is defined here, rather than in Makefile.files,
50# because the "$(CLOSED_BUILD)" macro has not been defined at the time
51# Makefile.files is processed.
52#
53INTEL_NB5000_OBJS += \
54	intel_nb5000.o \
55	intel_nbdrv.o \
56	dimm_addr.o \
57	nb_pci_cfg.o \
58	nb5000_init.o
59
60$(CLOSED_BUILD)INTEL_NB5000_OBJS += memtrans.o
61
62OBJECTS		= $(INTEL_NB5000_OBJS:%=$(OBJS_DIR)/%)
63LINTS		= $(INTEL_NB5000_OBJS:%.o=$(LINTS_DIR)/%.ln)
64
65#
66#       Define targets
67#
68ALL_TARGET      = $(BINARY)
69LINT_TARGET     = $(LINT_MODULE).lint
70INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
71
72#
73#       Default build targets.
74#
75.KEEP_STATE:
76
77def:            $(DEF_DEPS)
78
79all:            $(ALL_DEPS)
80
81clean:          $(CLEAN_DEPS)
82
83clobber:        $(CLOBBER_DEPS)
84
85lint:           $(LINT_DEPS)
86
87modlintlib:     $(MODLINTLIB_DEPS)
88
89clean.lint:     $(CLEAN_LINT_DEPS)
90
91install:        $(INSTALL_DEPS)
92
93$(OBJECTS): $(OBJS_DIR) $(MCAMD_OFF_H)
94
95#
96#       Include common targets.
97#
98include ../Makefile.targ
99$(CLOSED_BUILD)include $(UTSCLOSED)/intel/Makefile.rules
100