xref: /illumos-gate/usr/src/uts/i86pc/gfx_private/Makefile (revision 898c3fec4c1cbcd45754042f6635b76a9067abd6)
1fc1821feSrugrat#
2fc1821feSrugrat# CDDL HEADER START
3fc1821feSrugrat#
4fc1821feSrugrat# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7fc1821feSrugrat#
8fc1821feSrugrat# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fc1821feSrugrat# or http://www.opensolaris.org/os/licensing.
10fc1821feSrugrat# See the License for the specific language governing permissions
11fc1821feSrugrat# and limitations under the License.
12fc1821feSrugrat#
13fc1821feSrugrat# When distributing Covered Code, include this CDDL HEADER in each
14fc1821feSrugrat# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fc1821feSrugrat# If applicable, add the following below this CDDL HEADER, with the
16fc1821feSrugrat# fields enclosed by brackets "[]" replaced with your own identifying
17fc1821feSrugrat# information: Portions Copyright [yyyy] [name of copyright owner]
18fc1821feSrugrat#
19fc1821feSrugrat# CDDL HEADER END
20fc1821feSrugrat#
21fc1821feSrugrat#
22fc1821feSrugrat# uts/i86pc/gfx_private/Makefile
232df1fe9cSrandyf# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24fc1821feSrugrat# Use is subject to license terms.
257b07063dSIgor Kozhukhov# Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
26fc1821feSrugrat#
277014882cSRichard Lowe
28fc1821feSrugrat#
29fc1821feSrugrat#	i86pc platform dependent
30fc1821feSrugrat#
31fc1821feSrugrat
32fc1821feSrugrat#
33fc1821feSrugrat#	Path to the base of the uts directory tree (usually /usr/src/uts).
34fc1821feSrugrat#
35fc1821feSrugratUTSBASE	= ../..
36fc1821feSrugrat
37fc1821feSrugrat#
38fc1821feSrugrat#	Define the module and object file sets.
39fc1821feSrugrat#
40fc1821feSrugratMODULE		= gfx_private
41*898c3fecSToomas SoomeOBJECTS		= $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%)
42fc1821feSrugratLINTS		= $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
43fc1821feSrugratROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
442df1fe9cSrandyfGFXP_VGATEXT	= gfxp_vgatext
452df1fe9cSrandyfGFXP_VGATEXT_SRC	= $(UTSBASE)/i86pc/io/gfx_private
46fc1821feSrugrat
47fc1821feSrugrat#
48fc1821feSrugrat#	dependency
49fc1821feSrugrat#
50fc1821feSrugratLDFLAGS	+=      -dy -Nmisc/pci_autoconfig
51fc1821feSrugrat
52fc1821feSrugrat#
53fc1821feSrugrat#	Include common rules.
54fc1821feSrugrat#
55fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.i86pc
56fc1821feSrugrat
57fc1821feSrugrat#
58fc1821feSrugrat#	Define targets
59fc1821feSrugrat#
60fc1821feSrugratALL_TARGET	= $(BINARY)
61fc1821feSrugratLINT_TARGET	= $(MODULE).lint
62fc1821feSrugratINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
63fc1821feSrugrat
64fc1821feSrugrat#
65bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
66bb25c06cSjg# to investigate and remove these for maximum lint coverage.
67bb25c06cSjg# Please do not carry these forward to new Makefiles.
68bb25c06cSjg#
69bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
70bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
71bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
72bb25c06cSjg
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
747014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
757014882cSRichard Lowe
76bb25c06cSjg#
77fc1821feSrugrat#	Default build targets.
78fc1821feSrugrat#
79fc1821feSrugrat.KEEP_STATE:
80fc1821feSrugrat
81fc1821feSrugratdef:		$(DEF_DEPS)
82fc1821feSrugrat
83fc1821feSrugratall:		$(ALL_DEPS)
84fc1821feSrugrat
85fc1821feSrugratclean:		$(CLEAN_DEPS)
86fc1821feSrugrat
87fc1821feSrugratclobber:	$(CLOBBER_DEPS)
88fc1821feSrugrat
89fc1821feSrugratlint:		$(LINT_DEPS)
90fc1821feSrugrat
91fc1821feSrugratmodlintlib:	$(MODLINTLIB_DEPS)
92fc1821feSrugrat
93fc1821feSrugratclean.lint:	$(CLEAN_LINT_DEPS)
94fc1821feSrugrat
95fc1821feSrugratinstall:	$(INSTALL_DEPS)
96fc1821feSrugrat
97fc1821feSrugrat#
98fc1821feSrugrat#	Include common targets.
99fc1821feSrugrat#
100fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.targ
101