Imakefile 4.06 KB
Newer Older
alanh's avatar
alanh committed
1
2
3
XCOMM
XCOMM This is an Imakefile for the ffb driver.  
XCOMM
4
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile,v 1.7 2002/09/16 18:06:01 eich Exp $
alanh's avatar
alanh committed
5
6
7
8
9
10
11

#define IHaveModules
#include <Server.tmpl>

#if BuildXF86DRI
DRISRCS = ffb_dri.c
DRIOBJS = ffb_dri.o
12
13
DRIINCLUDES = -I$(SERVERSRC)/GL/dri -I$(LIBSRC)/GL/dri -I$(TOP)/include \
              -I$(DRMSRCDIR)/shared
alanh's avatar
alanh committed
14
15
16
17
18
19
20
21
22
DRIDEFINES = $(GLX_DEFINES)
#endif

#if defined(AsVISOption) && defined(UseElfFormat)
VISOBJS = VISmoveImage.o ffb_asm.o
VISOPTIONS = -DUSE_VIS
ASVISOPTION = AsVISOption
GCCVISOPTION = -Wa,$(ASVISOPTION)
#if AsOutputArchSize == 32
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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
alanh's avatar
alanh committed
48
49
#else
#define FFBCObjectRule(name) SpecialCObjectRule(name,,$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))
50
51
52
53
#define FFBsObjectRule(name)						@@\
name.o: name.s								@@\
	$(RM) $@							@@\
	$(CPP) $*.s | $(AS) $(GCCVISOPTION) -o $@ -
alanh's avatar
alanh committed
54
55
56
57
58
59
60
61
62
#endif
#else
VISOBJS =
VISOPTIONS =
ASVISOPTION =
#define FFBCObjectRule(name)
#define FFBsObjectRule(name)
#endif

63
64
65
66
67
68
69
70
71
72
73
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)
alanh's avatar
alanh committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136

#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))

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()