1494N/A#
1494N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1494N/A#
1494N/A# Permission is hereby granted, free of charge, to any person obtaining a
1494N/A# copy of this software and associated documentation files (the "Software"),
1494N/A# to deal in the Software without restriction, including without limitation
1494N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1494N/A# and/or sell copies of the Software, and to permit persons to whom the
1494N/A# Software is furnished to do so, subject to the following conditions:
1494N/A#
1494N/A# The above copyright notice and this permission notice (including the next
1494N/A# paragraph) shall be included in all copies or substantial portions of the
1494N/A# Software.
1494N/A#
1494N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1494N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1494N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1494N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1494N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1494N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1494N/A# DEALINGS IN THE SOFTWARE.
1494N/A#
1494N/A#
1494N/A###############################################################################
1494N/A#
1494N/A# This Makefile actually builds the i915 framebuffer driver
1494N/A#
1494N/A###############################################################################
1494N/A
1494N/ATOP:sh = hg root
1494N/A
1494N/AC_SRCS = dvo_ch7017.c \
1494N/A dvo_ch7xxx.c \
1494N/A dvo_ivch.c \
1494N/A dvo_ns2501.c \
1494N/A dvo_sil164.c \
1494N/A dvo_tfp410.c \
1494N/A i915_dma.c \
1494N/A i915_drv.c \
1494N/A i915_gem.c \
1494N/A i915_gem_context.c \
1494N/A i915_gem_debug.c \
1494N/A i915_gem_evict.c \
1494N/A i915_gem_execbuffer.c \
1494N/A i915_gem_gtt.c \
1494N/A i915_gem_stolen.c \
1494N/A i915_gem_tiling.c \
1494N/A i915_io32.c \
1494N/A i915_irq.c \
1494N/A i915_suspend.c \
1494N/A i915_ums.c \
1494N/A intel_bios.c \
1494N/A intel_crt.c \
1494N/A intel_ddi.c \
1494N/A intel_display.c \
1494N/A intel_dp.c \
1494N/A intel_dvo.c \
1494N/A intel_fb.c \
1494N/A intel_hdmi.c \
1494N/A intel_i2c.c \
1494N/A intel_lvds.c \
1494N/A intel_modes.c \
1494N/A intel_overlay.c \
1494N/A intel_panel.c \
1494N/A intel_pm.c \
1494N/A intel_ringbuffer.c \
1494N/A intel_sdvo.c \
1494N/A intel_sideband.c \
1494N/A intel_sprite.c \
1494N/A intel_tv.c
1494N/A
1577N/AMANPAGES = i915.4d
1577N/AMANSECTION = man4d
1494N/AMANSOURCE = ../manpages
1494N/A
1494N/A# Include kernel common rules
1494N/Ainclude $(TOP)/open-src/kernel/Makefile.rules
1494N/A
1494N/AMODULE = i915
1494N/AOBJECTS = $(C_SRCS:%.c=%.o)
1494N/ALINTS = $(OBJECTS:%.o=%.ln)
1494N/A
1494N/A#
1494N/A# Define targets
1494N/A#
1494N/AALL_TARGET = $(BINARY)
1494N/ALINT_TARGET = $(MODULE).lint
1494N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1494N/A
1494N/A#
1494N/A# Lint errors that are not clean
1494N/A#
1494N/ALINTTAGS += -erroff=E_STATIC_UNUSED
1494N/A
1494N/A#
1494N/A# Lint clean in current code, but might not be in updated code
1494N/A#
1494N/A# LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
1494N/A# LINTTAGS += -erroff=E_CONST_EXPR
1494N/A# LINTTAGS += -erroff=E_TRUE_LOGICAL_EXPR
1494N/A# LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR
1494N/A#
1494N/A# And the %p issue in 15196627 that is currently resolved in this source
1494N/A# LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
1494N/A
1494N/A#
1494N/A# Default build targets.
1494N/A#
1494N/A.KEEP_STATE_FILE: .make.state.$(MACH)
1494N/A# .SUFFIXES:
1494N/A# .DEFAULT: $(MODULE)
1494N/A
1494N/Aall: $(MODULE)
1494N/A
1494N/A$(OBJECTS):
1494N/A $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
1494N/A $(CTFCONVERT) $(CTFCVTFLAGS) $@
1494N/A
1494N/A$(MODULE): $(OBJECTS)
1494N/A $(LD) -o $@ $(LDFLAGS) $(OBJECTS)
1494N/A $(CTFMERGE) $(CTFMERGE_LABEL) -o $@ $(OBJECTS)
1494N/A
1494N/Adef: $(DEF_DEPS)
1494N/A
1494N/Aclean: $(CLEAN_DEPS)
1494N/A $(RM) $(OBJECTS)
1494N/A
1494N/Aclobber: clean
1494N/A $(RM) *.bc
1494N/A $(RM) $(MODULE)
1494N/A
1494N/Alint: $(LINT_DEPS)
1494N/A
1494N/Amodlintlib: $(MODLINTLIB_DEPS)
1494N/A
1494N/Aclean.lint: $(CLEAN_LINT_DEPS)
1494N/A
1494N/Ainstall: $(INSTALL_DEPS)
1494N/A @print Installing $(MODULE) in $(PROTODIR)/$(PREFIX)
1494N/A @mkdir -p $(PROTODIR)/$(PREFIX)
1496N/A @$(INSTALL) -m 555 $(MODULE) $(PROTODIR)/$(PREFIX)
1494N/A @print Installing $(MANSOURCE)/$(MANPAGES) in $(PROTODIR)$(MANTARGET)
1494N/A @mkdir -p $(PROTODIR)$(ROOT_MAN_DIR)/$(MANSECTION)
1494N/A @$(INSTALL) -m 644 $(MANSOURCE)/$(MANPAGES) $(PROTODIR)$(MANTARGET)