1450N/A#
1450N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1450N/A#
1450N/A# Permission is hereby granted, free of charge, to any person obtaining a
1450N/A# copy of this software and associated documentation files (the "Software"),
1450N/A# to deal in the Software without restriction, including without limitation
1450N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1450N/A# and/or sell copies of the Software, and to permit persons to whom the
1450N/A# Software is furnished to do so, subject to the following conditions:
1450N/A#
1450N/A# The above copyright notice and this permission notice (including the next
1450N/A# paragraph) shall be included in all copies or substantial portions of the
1450N/A# Software.
1450N/A#
1450N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1450N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1450N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1450N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1450N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1450N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1450N/A# DEALINGS IN THE SOFTWARE.
1450N/A#
1450N/A#
1450N/A###############################################################################
1450N/A#
1450N/A# This Makefile actually builds the drm misc module.
1450N/A#
1450N/A###############################################################################
1450N/A
1450N/ATOP:sh = hg root
1450N/A
1450N/AC_SRCS = ati_pcigart.c \
1450N/A drm_agpsupport.c \
1450N/A drm_auth.c \
1450N/A drm_bufs.c \
1450N/A drm_cache.c \
1450N/A drm_context.c \
1450N/A drm_crtc.c \
1450N/A drm_crtc_helper.c \
1450N/A drm_dma.c \
1450N/A drm_dp_helper.c \
1450N/A drm_dp_i2c_helper.c \
1450N/A drm_drv.c \
1450N/A drm_edid.c \
1450N/A drm_fb_helper.c \
1450N/A drm_fops.c \
1450N/A drm_gem.c \
1450N/A drm_io32.c \
1450N/A drm_ioctl.c \
1450N/A drm_irq.c \
1450N/A drm_kstat.c \
1450N/A drm_linux.c \
1450N/A drm_lock.c \
1450N/A drm_memory.c \
1450N/A drm_mm.c \
1450N/A drm_modes.c \
1450N/A drm_msg.c \
1450N/A drm_pci.c \
1450N/A drm_rect.c \
1450N/A drm_scatter.c \
1450N/A drm_stub.c \
1450N/A drm_sun_i2c.c \
1450N/A drm_sun_idr.c \
1450N/A drm_sun_pci.c \
1450N/A drm_sun_timer.c \
1450N/A drm_sun_workqueue.c \
1450N/A drm_sunmod.c \
1450N/A drm_sysfs.c
1450N/A
1450N/A# Include kernel common rules
1450N/Ainclude $(TOP)/open-src/kernel/Makefile.rules
1450N/A
1450N/AMODULE = drm
1450N/AOBJECTS = $(C_SRCS:%.c=%.o)
1450N/ALINTS = $(OBJECTS:%.o=%.ln)
1450N/A
1450N/A#
1450N/A# Define targets
1450N/A# Leftovers from the ON move. They still have some value here.
1450N/A#
1450N/AALL_TARGET = $(BINARY)
1450N/ALINT_TARGET = $(MODULE).lint
1450N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1450N/A
1450N/A#
1450N/A# Lint errors that are not clean
1450N/A#
1450N/ALINTTAGS += -erroff=E_STATIC_UNUSED
1450N/A
1450N/A#
1450N/A# Lint clean in current code, but might not be in updated code
1450N/A#
1450N/A# LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
1450N/A# LINTTAGS += -erroff=E_CONST_EXPR
1450N/A# LINTTAGS += -erroff=E_TRUE_LOGICAL_EXPR
1450N/A# LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR
1450N/A#
1450N/A# And the %p issue in 4994570 that is currently resolved in this source
1450N/A# LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
1450N/A
1450N/A#
1450N/A# Default build targets.
1450N/A#
1450N/A.KEEP_STATE_FILE: .make.state.$(MACH)
1450N/A# .SUFFIXES:
1450N/A# .DEFAULT: $(MODULE)
1450N/A
1450N/Aall: $(MODULE)
1450N/A
1450N/A$(OBJECTS):
1450N/A $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
1450N/A $(CTFCONVERT) $(CTFCVTFLAGS) $@
1450N/A
1450N/A$(MODULE): $(OBJECTS)
1450N/A $(LD) -o $@ $(LDFLAGS) $(OBJECTS)
1450N/A $(CTFMERGE) $(CTFMERGE_LABEL) -o $@ $(OBJECTS)
1450N/A
1450N/Adef: $(DEF_DEPS)
1450N/A
1450N/Aclean: $(CLEAN_DEPS)
1450N/A $(RM) $(OBJECTS)
1450N/A
1450N/Aclobber: clean
1450N/A $(RM) *.bc
1450N/A $(RM) $(MODULE)
1450N/A
1450N/Alint: $(LINT_DEPS)
1450N/A
1450N/Amodlintlib: $(MODLINTLIB_DEPS)
1450N/A
1450N/Aclean.lint: $(CLEAN_LINT_DEPS)
1450N/A
1450N/Ainstall: $(INSTALL_DEPS)
1450N/A @print Installing $(MODULE) in $(PROTODIR)/$(PREFIX)
1450N/A @mkdir -p $(PROTODIR)/$(PREFIX)
1450N/A @$(INSTALL) -m 555 $(MODULE) $(PROTODIR)/$(PREFIX)