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