1*e57b9183Scg149915# 2*e57b9183Scg149915# CDDL HEADER START 3*e57b9183Scg149915# 4*e57b9183Scg149915# The contents of this file are subject to the terms of the 5*e57b9183Scg149915# Common Development and Distribution License (the "License"). 6*e57b9183Scg149915# You may not use this file except in compliance with the License. 7*e57b9183Scg149915# 8*e57b9183Scg149915# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*e57b9183Scg149915# or http://www.opensolaris.org/os/licensing. 10*e57b9183Scg149915# See the License for the specific language governing permissions 11*e57b9183Scg149915# and limitations under the License. 12*e57b9183Scg149915# 13*e57b9183Scg149915# When distributing Covered Code, include this CDDL HEADER in each 14*e57b9183Scg149915# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*e57b9183Scg149915# If applicable, add the following below this CDDL HEADER, with the 16*e57b9183Scg149915# fields enclosed by brackets "[]" replaced with your own identifying 17*e57b9183Scg149915# information: Portions Copyright [yyyy] [name of copyright owner] 18*e57b9183Scg149915# 19*e57b9183Scg149915# CDDL HEADER END 20*e57b9183Scg149915# 21*e57b9183Scg149915 22*e57b9183Scg149915# 23*e57b9183Scg149915# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*e57b9183Scg149915# Use is subject to license terms. 25*e57b9183Scg149915# 26*e57b9183Scg149915# ident "%Z%%M% %I% %E% SMI" 27*e57b9183Scg149915# 28*e57b9183Scg149915# uts/intel/drm/Makefile 29*e57b9183Scg149915# 30*e57b9183Scg149915# This makefile drives the production of radeon graphics device driver, 31*e57b9183Scg149915# which supports the DRI (Direct Rendering Infrastructure), with the help 32*e57b9183Scg149915# of drm common misc module. 33*e57b9183Scg149915# 34*e57b9183Scg149915# intel platform dependent 35*e57b9183Scg149915# 36*e57b9183Scg149915# Path to the base of the uts directory tree (usually /usr/src/uts). 37*e57b9183Scg149915# 38*e57b9183Scg149915UTSBASE = ../.. 39*e57b9183Scg149915 40*e57b9183Scg149915# 41*e57b9183Scg149915# Define the module and object file sets. 42*e57b9183Scg149915# 43*e57b9183Scg149915MODULE = radeon 44*e57b9183Scg149915OBJECTS = $(RADEON_OBJS:%=$(OBJS_DIR)/%) 45*e57b9183Scg149915LINTS = $(RADEON_OBJS:%.o=$(LINTS_DIR)/%.ln) 46*e57b9183Scg149915ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 47*e57b9183Scg149915 48*e57b9183Scg149915# radeon driver depends on drm 49*e57b9183Scg149915INC_PATH += -I$(UTSBASE)/intel/io/drm -I$(UTSBASE)/common/io/drm 50*e57b9183Scg149915 51*e57b9183Scg149915# 52*e57b9183Scg149915# dependency 53*e57b9183Scg149915LDFLAGS += -dy -Nmisc/drm 54*e57b9183Scg149915 55*e57b9183Scg149915# 56*e57b9183Scg149915# Include common rules. 57*e57b9183Scg149915# 58*e57b9183Scg149915include $(UTSBASE)/intel/Makefile.intel 59*e57b9183Scg149915 60*e57b9183Scg149915# 61*e57b9183Scg149915# Re-define targets 62*e57b9183Scg149915# 63*e57b9183Scg149915ALL_TARGET = $(BINARY) 64*e57b9183Scg149915LINT_TARGET = $(MODULE).lint 65*e57b9183Scg149915INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 66*e57b9183Scg149915 67*e57b9183Scg149915# 68*e57b9183Scg149915# Default build targets. 69*e57b9183Scg149915# 70*e57b9183Scg149915.KEEP_STATE: 71*e57b9183Scg149915 72*e57b9183Scg149915def: $(DEF_DEPS) 73*e57b9183Scg149915 74*e57b9183Scg149915all: $(ALL_DEPS) 75*e57b9183Scg149915 76*e57b9183Scg149915clean: $(CLEAN_DEPS) 77*e57b9183Scg149915 78*e57b9183Scg149915clobber: $(CLOBBER_DEPS) 79*e57b9183Scg149915 80*e57b9183Scg149915lint: $(LINT_DEPS) 81*e57b9183Scg149915 82*e57b9183Scg149915modlintlib: $(MODLINTLIB_DEPS) 83*e57b9183Scg149915 84*e57b9183Scg149915clean.lint: $(CLEAN_LINT_DEPS) 85*e57b9183Scg149915 86*e57b9183Scg149915install: $(INSTALL_DEPS) 87*e57b9183Scg149915 88*e57b9183Scg149915# 89*e57b9183Scg149915# Include common targets. 90*e57b9183Scg149915# 91*e57b9183Scg149915include $(UTSBASE)/intel/Makefile.targ 92