XCOMM XCOMM This is an Imakefile for the ffb driver. XCOMM XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile,v 1.13 2005/03/01 03:48:53 dawes Exp $ /* * Copyright (c) 1994-2004 by The XFree86 Project, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject * to the following conditions: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions, and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution, and in the same place and form as other copyright, * license and disclaimer information. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: "This product * includes software developed by The XFree86 Project, Inc * (http://www.xfree86.org/) and its contributors", in the same * place and form as other third-party acknowledgments. Alternately, * this acknowledgment may appear in the software itself, in the * same form and location as other such third-party acknowledgments. * * 4. Except as contained in this notice, the name of The XFree86 * Project, Inc shall not be used in advertising or otherwise to * promote the sale, use or other dealings in this Software without * prior written authorization from The XFree86 Project, Inc. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #define IHaveModules #include #if BuildXF86DRI DRISRCS = ffb_dri.c DRIOBJS = ffb_dri.o DRIINCLUDES = -I$(SERVERSRC)/GL/dri -I$(LIBSRC)/GL/dri -I$(TOP)/include \ -I$(DRMINCLUDESDIR) DRIDEFINES = $(GLX_DEFINES) #endif #if defined(AsVISOption) VISOBJS = VISmoveImage.o ffb_asm.o VISOPTIONS = -DUSE_VIS ASVISOPTION = AsVISOption GCCVISOPTION = -Wa,$(ASVISOPTION) #if AsOutputArchSize == 32 #define FFBCObjectRule(name) @@\ name.o: name.c @@\ ObjectCompile(-mv8 -mtune=ultrasparc \ $(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES)) @@\ dd if=/dev/zero bs=1 count=3 2>/dev/null | \ dd of=$@ bs=1 count=3 seek=36 conv=notrunc 2>/dev/null @@\ dd if=/dev/zero bs=1 count=1 2>/dev/null | \ tr '\000' '\002' | \ dd of=$@ bs=1 count=1 seek=19 conv=notrunc 2>/dev/null @@\ @@\ name.i: name.c @@\ CPPOnlyCompile(name.c,-mv8 \ $(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES)) @@\ @@\ CenterLoadTarget(debug_src,name.c,NullParameter,$(ALLDEFINES) -mv8 \ $(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES)) #define FFBsObjectRule(name) @@\ name.o: name.s @@\ $(RM) $@ @@\ $(CPP) $*.s | $(AS) $(GCCVISOPTION) -o $@ - @@\ dd if=/dev/zero bs=1 count=3 2>/dev/null | \ dd of=$@ bs=1 count=3 seek=36 conv=notrunc 2>/dev/null @@\ dd if=/dev/zero bs=1 count=1 2>/dev/null | \ tr '\000' '\002' | \ dd of=$@ bs=1 count=1 seek=19 conv=notrunc 2>/dev/null #else #define FFBCObjectRule(name) SpecialCObjectRule(name,,$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES)) #define FFBsObjectRule(name) @@\ name.o: name.s @@\ $(RM) $@ @@\ $(CC) -c -x assembler-with-cpp $(GCCVISOPTION) $*.s -o $@ #endif #else VISOBJS = VISOPTIONS = ASVISOPTION = #define FFBCObjectRule(name) #define FFBsObjectRule(name) #endif SRCS = ffb_driver.c ffb_accel.c ffb_attr.c ffb_stip.c ffb_bcopy.c \ ffb_cplane.c ffb_fspans.c ffb_point.c ffb_seg.c ffb_plygon.c \ ffb_line.c ffb_glyph.c ffb_frect.c ffb_circle.c ffb_checks.c \ ffb_stubs.c ffb_gc.c ffb_gspans.c ffb_sspans.c ffb_zeroarc.c \ ffb_cursor.c ffb_dga.c ffb_dac.c ffb_wid.c ffb_dbe.c $(DRISRCS) OBJS = ffb_driver.o ffb_accel.o ffb_attr.o ffb_stip.o ffb_bcopy.o \ ffb_cplane.o ffb_fspans.o ffb_point.o ffb_seg.o ffb_plygon.o \ ffb_line.o ffb_glyph.o ffb_frect.o ffb_circle.o ffb_checks.o \ ffb_stubs.o ffb_gc.o ffb_gspans.o ffb_sspans.o ffb_zeroarc.o \ ffb_cursor.o ffb_dga.o ffb_dac.o ffb_wid.o ffb_dbe.o $(VISOBJS) \ $(DRIOBJS) #if defined(XF86DriverSDK) INCLUDES = -I. -I../../include #else INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86OSSRC) \ -I$(SERVERSRC)/mfb -I$(SERVERSRC)/mi \ -I$(SERVERSRC)/Xext -I$(SERVERSRC)/cfb \ -I$(SERVERSRC)/dbe \ -I$(XF86SRC)/xf8_32wid \ -I$(XF86SRC)/ramdac \ -I$(XF86SRC)/ddc \ -I$(XF86SRC)/i2c \ -I$(FONTINCSRC) -I$(SERVERSRC)/include -I$(XINCLUDESRC) \ -I$(EXTINCSRC) \ $(DRIINCLUDES) #endif #if MakeHasPosixVariableSubstitutions SubdirLibraryRule($(OBJS)) #endif ModuleObjectRule() ObjectModuleTarget(sunffb,$(OBJS),drivers) InstallObjectModule(sunffb,$(MODULEDIR),drivers) #if !defined(XF86DriverSDK) InstallModuleManPage(sunffb) #endif FFBCObjectRule(ffb_accel) FFBCObjectRule(ffb_driver) FFBCObjectRule(ffb_attr) FFBCObjectRule(ffb_stip) FFBCObjectRule(ffb_bcopy) FFBCObjectRule(ffb_cplane) FFBCObjectRule(ffb_fspans) FFBCObjectRule(ffb_point) FFBCObjectRule(ffb_seg) FFBCObjectRule(ffb_plygon) FFBCObjectRule(ffb_line) FFBCObjectRule(ffb_glyph) FFBCObjectRule(ffb_frect) FFBCObjectRule(ffb_circle) FFBCObjectRule(ffb_checks) FFBCObjectRule(ffb_stubs) FFBCObjectRule(ffb_gc) FFBCObjectRule(ffb_gspans) FFBCObjectRule(ffb_sspans) FFBCObjectRule(ffb_zeroarc) FFBCObjectRule(ffb_cursor) FFBCObjectRule(ffb_dga) FFBCObjectRule(ffb_dac) FFBCObjectRule(ffb_wid) FFBCObjectRule(ffb_dbe) FFBsObjectRule(VISmoveImage) FFBsObjectRule(ffb_asm) #if BuildXF86DRI FFBCObjectRule(ffb_dri) #endif DependTarget()