Makefile revision 1450
561N/A#
561N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1339N/A#
561N/A# Permission is hereby granted, free of charge, to any person obtaining a
561N/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:
919N/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.
919N/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.
919N/A#
561N/A#
561N/A###############################################################################
561N/A#
561N/A# This Makefile actually builds the drm misc module.
561N/A#
561N/A###############################################################################
970N/A
970N/ATOP:sh = hg root
970N/A
970N/AC_SRCS = ati_pcigart.c \
561N/A drm_agpsupport.c \
1043N/A drm_auth.c \
561N/A drm_bufs.c \
911N/A drm_cache.c \
1043N/A drm_context.c \
1043N/A drm_crtc.c \
911N/A drm_crtc_helper.c \
1339N/A drm_dma.c \
1339N/A drm_dp_helper.c \
1339N/A drm_dp_i2c_helper.c \
561N/A drm_drv.c \
561N/A drm_edid.c \
drm_fb_helper.c \
drm_fops.c \
drm_gem.c \
drm_io32.c \
drm_ioctl.c \
drm_irq.c \
drm_kstat.c \
drm_linux.c \
drm_lock.c \
drm_memory.c \
drm_mm.c \
drm_modes.c \
drm_msg.c \
drm_pci.c \
drm_rect.c \
drm_scatter.c \
drm_stub.c \
drm_sun_i2c.c \
drm_sun_idr.c \
drm_sun_pci.c \
drm_sun_timer.c \
drm_sun_workqueue.c \
drm_sunmod.c \
drm_sysfs.c
# Include kernel common rules
include $(TOP)/open-src/kernel/Makefile.rules
MODULE = drm
OBJECTS = $(C_SRCS:%.c=%.o)
LINTS = $(OBJECTS:%.o=%.ln)
#
# Define targets
# Leftovers from the ON move. They still have some value here.
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Lint errors that are not clean
#
LINTTAGS += -erroff=E_STATIC_UNUSED
#
# Lint clean in current code, but might not be in updated code
#
# LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
# LINTTAGS += -erroff=E_CONST_EXPR
# LINTTAGS += -erroff=E_TRUE_LOGICAL_EXPR
# LINTTAGS += -erroff=E_FALSE_LOGICAL_EXPR
#
# And the %p issue in 4994570 that is currently resolved in this source
# LINTTAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
#
# Default build targets.
#
.KEEP_STATE_FILE: .make.state.$(MACH)
# .SUFFIXES:
# .DEFAULT: $(MODULE)
all: $(MODULE)
$(OBJECTS):
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
$(CTFCONVERT) $(CTFCVTFLAGS) $@
$(MODULE): $(OBJECTS)
$(LD) -o $@ $(LDFLAGS) $(OBJECTS)
$(CTFMERGE) $(CTFMERGE_LABEL) -o $@ $(OBJECTS)
def: $(DEF_DEPS)
clean: $(CLEAN_DEPS)
$(RM) $(OBJECTS)
clobber: clean
$(RM) *.bc
$(RM) $(MODULE)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
@print Installing $(MODULE) in $(PROTODIR)/$(PREFIX)
@mkdir -p $(PROTODIR)/$(PREFIX)
@$(INSTALL) -m 555 $(MODULE) $(PROTODIR)/$(PREFIX)