1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#define IHaveModules
#include <Server.tmpl>
#if BuildScreenSaverExt
SCRNSAVSRC = saver.c
SCRNSAVOBJ = saver.o
LinkSourceFile(saver.c,..)
#endif
#if BuildDPMS
DPMSSRCS = dpms.c
DPMSOBJS = dpms.o
LinkSourceFile(dpms.c,..)
#endif
#if BuildXvExt
XVSRCS = xvmain.c xvdisp.c xvmod.c xvmc.c
XVOBJS = xvmain.o xvdisp.o xvmod.o xvmc.o
LinkSourceFile(xvmain.c,..)
LinkSourceFile(xvdisp.c,..)
LinkSourceFile(xvmod.c,..)
LinkSourceFile(xvmc.c,..)
#endif
#if BuildXResExt
XRESSRCS = xres.c
XRESOBJS = xres.o
LinkSourceFile(xres.c,..)
#endif
MODINITSRCS = modinit.c
MODINITOBJS = modinit.o
SRCS = shape.c \
bigreq.c sync.c $(SCRNSAVSRC) xcmisc.c \
$(DPMSSRCS) \
$(XVSRCS) $(MODINITSRCS) $(XRESSRCS)
MOBJS = $(MODINITOBJS) shape.o \
bigreq.o sync.o $(SCRNSAVOBJ) xcmisc.o \
$(DPMSOBJS) \
$(XVOBJS) $(XRESOBJS)
DEFINES = -DEXTMODULE $(EXT_DEFINES)
XF86INCLUDES = -I$(XF86COMSRC)
INCLUDES = -I.. -I../../include -I$(XINCLUDESRC) -I$(EXTINCSRC) \
$(XF86INCLUDES)
LINTLIBS = ../../dix/llib-ldix.ln ../../os/llib-los.ln
LinkSourceFile(shape.c,..)
LinkSourceFile(bigreq.c,..)
LinkSourceFile(sync.c,..)
LinkSourceFile(xcmisc.c,..)
ModuleObjectRule()
SpecialCObjectRule(modinit,$(ICONFIGFILES),$(EXT_DEFINES))
LibraryModuleTarget(extmod,$(MOBJS))
NormalLintTarget($(SRCS))
InstallLibraryModule(extmod,$(MODULEDIR),extensions)
DependTarget()
InstallDriverSDKLibraryModule(extmod,$(DRIVERSDKMODULEDIR),extensions)
|