xref: /titanic_41/usr/src/uts/intel/i915/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1ae115bc7Smrj#
2ae115bc7Smrj# CDDL HEADER START
3ae115bc7Smrj#
4ae115bc7Smrj# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
7ae115bc7Smrj#
8ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ae115bc7Smrj# or http://www.opensolaris.org/os/licensing.
10ae115bc7Smrj# See the License for the specific language governing permissions
11ae115bc7Smrj# and limitations under the License.
12ae115bc7Smrj#
13ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each
14ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the
16ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying
17ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner]
18ae115bc7Smrj#
19ae115bc7Smrj# CDDL HEADER END
20ae115bc7Smrj#
21ae115bc7Smrj
22ae115bc7Smrj#
23d0538f66Scg149915# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24ae115bc7Smrj# Use is subject to license terms.
25ae115bc7Smrj#
26*7014882cSRichard Lowe
27ae115bc7Smrj#
28d0538f66Scg149915# uts/intel/drm/Makefile
29ae115bc7Smrj#
30ae115bc7Smrj#	This makefile drives the production of i915 graphics device driver,
31ae115bc7Smrj#	which supports the DRI (Direct Rendering Infrastructure), with the help
32ae115bc7Smrj#	of drm common misc module.
33ae115bc7Smrj#
34ae115bc7Smrj#	intel platform dependent
35ae115bc7Smrj#
36ae115bc7Smrj#	Path to the base of the uts directory tree (usually /usr/src/uts).
37ae115bc7Smrj#
38ae115bc7SmrjUTSBASE = ../..
39ae115bc7Smrj
40ae115bc7Smrj#
41ae115bc7Smrj#	Define the module and object file sets.
42ae115bc7Smrj#
43ae115bc7SmrjMODULE		= i915
44ae115bc7SmrjOBJECTS		= $(I915_OBJS:%=$(OBJS_DIR)/%)
45ae115bc7SmrjLINTS		= $(I915_OBJS:%.o=$(LINTS_DIR)/%.ln)
46ae115bc7SmrjROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47ae115bc7Smrj
48ae115bc7Smrj# i915 driver depends on drm, agpmaster and gfx_private misc modules
49d0538f66Scg149915INC_PATH        += -I$(UTSBASE)/intel/io/drm -I$(UTSBASE)/common/io/drm
50ae115bc7Smrj
51ae115bc7Smrj#
52ae115bc7Smrj#	dependency
53d0538f66Scg149915LDFLAGS	+= -dy -Nmisc/drm
54ae115bc7Smrj
55ae115bc7Smrj#
56ae115bc7Smrj#	Include common rules.
57ae115bc7Smrj#
58ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
59ae115bc7Smrj
60*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
61*7014882cSRichard Lowe
62ae115bc7Smrj#
63d0538f66Scg149915#	Re-define targets
64ae115bc7Smrj#
65d0538f66Scg149915ALL_TARGET	= $(BINARY)
66ae115bc7SmrjLINT_TARGET	= $(MODULE).lint
67ae115bc7SmrjINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
68ae115bc7Smrj
69ae115bc7Smrj#
70ae115bc7Smrj#	Default build targets.
71ae115bc7Smrj#
72ae115bc7Smrj.KEEP_STATE:
73ae115bc7Smrj
74ae115bc7Smrjdef:		$(DEF_DEPS)
75ae115bc7Smrj
76ae115bc7Smrjall:		$(ALL_DEPS)
77ae115bc7Smrj
78ae115bc7Smrjclean:		$(CLEAN_DEPS)
79ae115bc7Smrj
80ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
81ae115bc7Smrj
82ae115bc7Smrjlint:		$(LINT_DEPS)
83ae115bc7Smrj
84ae115bc7Smrjmodlintlib:	$(MODLINTLIB_DEPS)
85ae115bc7Smrj
86ae115bc7Smrjclean.lint:	$(CLEAN_LINT_DEPS)
87ae115bc7Smrj
88ae115bc7Smrjinstall:	$(INSTALL_DEPS)
89ae115bc7Smrj
90ae115bc7Smrj#
91ae115bc7Smrj#	Include common targets.
92ae115bc7Smrj#
93ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
94