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 drm misc module.
1494N/A#
1494N/A###############################################################################
1494N/A
1494N/ATOP:sh = hg root
1494N/A
1494N/AC_SRCS = ati_pcigart.c \
1494N/A drm_agpsupport.c \
1494N/A drm_auth.c \
1494N/A drm_bufs.c \
1494N/A drm_cache.c \
1494N/A drm_context.c \
1494N/A drm_crtc.c \
1494N/A drm_crtc_helper.c \
1494N/A drm_dma.c \
1494N/A drm_dp_helper.c \
1494N/A drm_dp_i2c_helper.c \
1494N/A drm_drv.c \
1494N/A drm_edid.c \
1494N/A drm_fb_helper.c \
1494N/A drm_fops.c \
1494N/A drm_gem.c \
1494N/A drm_io32.c \
1494N/A drm_ioctl.c \
1494N/A drm_irq.c \
1494N/A drm_kstat.c \
1494N/A drm_linux.c \
1494N/A drm_lock.c \
1494N/A drm_memory.c \
1494N/A drm_mm.c \
1494N/A drm_modes.c \
1494N/A drm_msg.c \
1494N/A drm_pci.c \
1494N/A drm_rect.c \
1494N/A drm_scatter.c \
1494N/A drm_stub.c \
1494N/A drm_sun_i2c.c \
1494N/A drm_sun_idr.c \
1494N/A drm_sun_pci.c \
1494N/A drm_sun_timer.c \
1494N/A drm_sun_workqueue.c \
1494N/A drm_sunmod.c \
1494N/A drm_sysfs.c
1494N/A
1494N/A# Include kernel common rules
1494N/Ainclude $(TOP)/open-src/kernel/Makefile.rules
1494N/A
1494N/AMODULE = drm
1494N/AOBJECTS = $(C_SRCS:%.c=%.o)
1494N/ALINTS = $(OBJECTS:%.o=%.ln)
1494N/A
1494N/A#
1494N/A# Define targets
1494N/A# Leftovers from the ON move. They still have some value here.
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 4994570 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)