aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/dmx/Imakefile
blob: b8c16dd534a23866cbaafcd5786e247728c77798 (plain)
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
67
68
69
70
71
72
73
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
XCOMM $XFree86$

#include <Server.tmpl>

#if BuildXinerama
PANORAMIX_SRCS = panoramiX.c
PANORAMIX_OBJS = panoramiX.o
#endif

#if BuildGlxExt
GLX_SRCS = dmx_glxvisuals.c $(PANORAMIX_SRCS)
GLX_OBJS = dmx_glxvisuals.o $(PANORAMIX_OBJS)
DMX_GLX_DEFINES = $(GLX_DEFINES) -DGLXPROXY
GLXPROXY_SUBDIR = glxProxy
#endif

#define IHaveSubdirs

#if BuildServersOnly && !BuildDmxDevelTools
SUBDIRS = input config $(GLXPROXY_SUBDIR)
#else
SUBDIRS = input config doc examples $(GLXPROXY_SUBDIR)
#endif

#if BuildRender
RENDER_SRCS = dmxpict.c
RENDER_OBJS = dmxpict.o
#endif

SRCS =	dmxinit.c \
	dmxscrinit.c \
	dmxshadow.c \
	dmxcursor.c \
	dmxinput.c \
	dmxdpms.c \
	dmxgc.c \
	dmxgcops.c \
	dmxwindow.c \
	dmxpixmap.c \
	dmxfont.c \
	dmxcmap.c \
	dmxvisual.c \
	dmxlog.c \
	dmxcb.c \
	dmxprop.c \
	dmxstat.c \
	dmxsync.c \
	dmxextension.c \
	miinitext.c \
	$(GLX_SRCS) \
	$(RENDER_SRCS)

OBJS =	dmxinit.o \
	dmxscrinit.o \
	dmxshadow.o \
	dmxcursor.o \
	dmxinput.o \
	dmxdpms.o \
	dmxgc.o \
	dmxgcops.o \
	dmxwindow.o \
	dmxpixmap.o \
	dmxfont.o \
	dmxcmap.o \
	dmxvisual.o \
	dmxlog.o \
	dmxcb.o \
	dmxprop.o \
	dmxstat.o \
	dmxsync.o \
	dmxextension.o \
	miinitext.o \
	$(GLX_OBJS) \
	$(RENDER_OBJS)

#include <dmx.cf>

#ifdef XVendorString
    VENDORSTRING = XVendorString
   VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\"
#endif

#ifdef XVendorRelease
    VENDORRELEASE = XVendorRelease
   VENDOR_RELEASE = -DVENDOR_RELEASE="$(VENDORRELEASE)"
#endif

VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE)

        OSNAME = OSName
      OSVENDOR = OSVendor
OSNAME_DEFINES = -DOSNAME='"$(OSNAME)"' -DOSVENDOR='"$(OSVENDOR)"'

INCLUDES = -I. -I$(XBUILDINCDIR) -I$(FONTINCSRC) \
	   -I../../mi -I../../include -I../../os \
	   -I../../fb -I../../miext/shadow -I../../render \
	   -I$(EXTINCSRC) -I$(XINCLUDESRC) -I$(SERVERSRC)/Xext

DEFINES = $(OS_DEFINES) $(EXT_DEFINES) -DDMXEXT -DXTEST \
	  $(DMX_GLX_DEFINES) $(DMX_DEFINES) $(VENDOR_DEFINES) \
	  $(OSNAME_DEFINES)

all:: $(OBJS)

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES),-DDMXSERVER)

#if BuildGlxExt
LinkSourceFile(panoramiX.c,$(SERVERSRC)/Xext)
#if HasGcc3
SpecialCObjectRule(panoramiX,$(ICONFIGFILES),-Wno-missing-prototypes -Wno-strict-prototypes -Wno-missing-declarations -Wno-sign-compare)
#else
SpecialCObjectRule(panoramiX,$(ICONFIGFILES),$(_NOOP_))
#endif
#endif

NormalLibraryObjectRule()
NormalLibraryTarget(dmx,$(OBJS))

InstallManPage(Xdmx,$(MANDIR))

DependTarget()