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