xref: /titanic_52/usr/src/uts/i86pc/gfx_private/Makefile (revision 7b07063d906859b2be1e88791f801b3c96e432f6)
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.
25*7b07063dSIgor 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
41fc1821feSrugratOBJECTS		= $(GFX_PRIVATE_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/$(VGATEXT_FONT).o
42fc1821feSrugratLINTS		= $(GFX_PRIVATE_OBJS:%.o=$(LINTS_DIR)/%.ln)
43fc1821feSrugratROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
44fc1821feSrugratVGATEXT_FONT	= 8859-1
45fc1821feSrugratVGATEXT_SRC	= $(UTSBASE)/intel/io/vgatext
462df1fe9cSrandyfGFXP_VGATEXT	= gfxp_vgatext
472df1fe9cSrandyfGFXP_VGATEXT_SRC	= $(UTSBASE)/i86pc/io/gfx_private
48fc1821feSrugrat
49fc1821feSrugrat#
50fc1821feSrugrat#	dependency
51fc1821feSrugrat#
52fc1821feSrugratLDFLAGS	+=      -dy -Nmisc/pci_autoconfig
53fc1821feSrugrat
54fc1821feSrugrat#
55fc1821feSrugrat#	Include common rules.
56fc1821feSrugrat#
57fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.i86pc
58fc1821feSrugrat
59fc1821feSrugrat#
60fc1821feSrugrat#	Define targets
61fc1821feSrugrat#
62fc1821feSrugratALL_TARGET	= $(BINARY)
63fc1821feSrugratLINT_TARGET	= $(MODULE).lint
64fc1821feSrugratINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
65fc1821feSrugrat
66fc1821feSrugrat#
67bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
68bb25c06cSjg# to investigate and remove these for maximum lint coverage.
69bb25c06cSjg# Please do not carry these forward to new Makefiles.
70bb25c06cSjg#
71bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
73bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74bb25c06cSjg
757014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
767014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
777014882cSRichard Lowe
78b6805bf7SGordon RossCLOBBERFILES	+= $(OBJS_DIR)/$(VGATEXT_FONT).c
79b6805bf7SGordon Ross
80bb25c06cSjg#
81fc1821feSrugrat#	Default build targets.
82fc1821feSrugrat#
83fc1821feSrugrat.KEEP_STATE:
84fc1821feSrugrat
85fc1821feSrugratdef:		$(DEF_DEPS)
86fc1821feSrugrat
87fc1821feSrugratall:		$(ALL_DEPS)
88fc1821feSrugrat
89fc1821feSrugratclean:		$(CLEAN_DEPS)
90fc1821feSrugrat
91fc1821feSrugratclobber:	$(CLOBBER_DEPS)
92fc1821feSrugrat
93fc1821feSrugratlint:		$(LINT_DEPS)
94fc1821feSrugrat
95fc1821feSrugratmodlintlib:	$(MODLINTLIB_DEPS)
96fc1821feSrugrat
97fc1821feSrugratclean.lint:	$(CLEAN_LINT_DEPS)
98fc1821feSrugrat
99fc1821feSrugratinstall:	$(INSTALL_DEPS)
100fc1821feSrugrat
101fc1821feSrugrat# Custom targets and rules
102fc1821feSrugrat
103fc1821feSrugrat$(OBJS_DIR)/$(VGATEXT_FONT).c:	$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf
104*7b07063dSIgor Kozhukhov	$(AWK) -f $(VGATEXT_SRC)/bdf_to_c.awk	\
105fc1821feSrugrat		$(VGATEXT_SRC)/$(VGATEXT_FONT).bdf > $@
106fc1821feSrugrat
107fc1821feSrugrat$(OBJS_DIR)/$(VGATEXT_FONT).o:	$(OBJS_DIR)/$(VGATEXT_FONT).c
108fc1821feSrugrat	$(COMPILE.c) -o $@ $<
109fc1821feSrugrat	$(CTFCONVERT_O)
110fc1821feSrugrat
111fc1821feSrugrat#
112fc1821feSrugrat#	Include common targets.
113fc1821feSrugrat#
114fc1821feSrugratinclude $(UTSBASE)/i86pc/Makefile.targ
115