1706f2543Smrg
2706f2543SmrgSUBDIRS = input config examples doc man
3706f2543Smrgbin_PROGRAMS = Xdmx
4706f2543Smrg
5706f2543Smrgif XINERAMA
6706f2543SmrgPANORAMIX_SRCS = $(top_srcdir)/Xext/panoramiX.c
7706f2543Smrgendif
8706f2543Smrg
9706f2543Smrgif GLX
10706f2543SmrgSUBDIRS += glxProxy
11706f2543SmrgGLX_LIBS = glxProxy/libglxproxy.a
12706f2543SmrgGLX_SRCS = $(PANORAMIX_SRCS) dmx_glxvisuals.c dmx_glxvisuals.h
13706f2543SmrgGLX_INCS = -I$(top_srcdir)/hw/xfree86/dixmods/extmod
14706f2543SmrgGLX_DEFS = @GL_CFLAGS@
15706f2543Smrgendif
16706f2543Smrg
17706f2543SmrgAM_CFLAGS = \
18706f2543Smrg      -DHAVE_DMX_CONFIG_H \
19706f2543Smrg      $(DIX_CFLAGS) \
20706f2543Smrg      $(GLX_INCS) \
21706f2543Smrg      $(GLX_DEFS) \
22706f2543Smrg      $(DMX_CFLAGS) \
23706f2543Smrg      @DMXMODULES_CFLAGS@
24706f2543Smrg
25706f2543SmrgXdmx_SOURCES = dmx.c \
26706f2543Smrg               dmxcb.c \
27706f2543Smrg               dmxcb.h \
28706f2543Smrg               dmxclient.h \
29706f2543Smrg               dmxcmap.c \
30706f2543Smrg               dmxcmap.h \
31706f2543Smrg               dmx-config.h \
32706f2543Smrg               dmxcursor.c \
33706f2543Smrg               dmxcursor.h \
34706f2543Smrg               dmxdpms.c \
35706f2543Smrg               dmxdpms.h \
36706f2543Smrg               dmxextension.c \
37706f2543Smrg               dmxextension.h \
38706f2543Smrg               dmxfont.c \
39706f2543Smrg               dmxfont.h \
40706f2543Smrg               dmxgc.c \
41706f2543Smrg               dmxgc.h \
42706f2543Smrg               dmxgcops.c \
43706f2543Smrg               dmxgcops.h \
44706f2543Smrg               dmx.h \
45706f2543Smrg               dmxinit.c \
46706f2543Smrg               dmxinit.h \
47706f2543Smrg               dmxinput.c \
48706f2543Smrg               dmxinput.h \
49706f2543Smrg               dmxlog.c \
50706f2543Smrg               dmxlog.h \
51706f2543Smrg               dmxpict.c \
52706f2543Smrg               dmxpict.h \
53706f2543Smrg               dmxpixmap.c \
54706f2543Smrg               dmxpixmap.h \
55706f2543Smrg               dmxprop.c \
56706f2543Smrg               dmxprop.h \
57706f2543Smrg               dmxscrinit.c \
58706f2543Smrg               dmxscrinit.h \
59706f2543Smrg               dmxshadow.c \
60706f2543Smrg               dmxshadow.h \
61706f2543Smrg               dmxstat.c \
62706f2543Smrg               dmxstat.h \
63706f2543Smrg               dmxsync.c \
64706f2543Smrg               dmxsync.h \
65706f2543Smrg               dmxvisual.c \
66706f2543Smrg               dmxvisual.h \
67706f2543Smrg               dmxwindow.c \
68706f2543Smrg               dmxwindow.h \
69706f2543Smrg               $(top_srcdir)/mi/miinitext.c \
70706f2543Smrg               $(top_srcdir)/fb/fbcmap_mi.c \
71706f2543Smrg               $(GLX_SRCS) 
72706f2543Smrg
73706f2543Smrg
74706f2543Smrg#if COMPOSITE
75706f2543Smrg#Xdmx_SOURCES += fakecw.c
76706f2543Smrg#endif
77706f2543Smrg
78706f2543SmrgXDMX_LIBS = \
79706f2543Smrg	$(GLX_LIBS) \
80706f2543Smrg	@XDMX_LIBS@ \
81706f2543Smrg        input/libdmxinput.a \
82706f2543Smrg        config/libdmxconfig.a
83706f2543Smrg
84706f2543SmrgXdmx_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
85706f2543SmrgXdmx_DEPENDENCIES= $(XDMX_LIBS)
86706f2543SmrgXdmx_LDADD = $(XDMX_LIBS) $(XDMX_SYS_LIBS) $(XSERVER_SYS_LIBS)
87706f2543Smrg
88706f2543Smrgrelink:
89706f2543Smrg	$(AM_V_at)rm -f Xdmx$(EXEEXT) && $(MAKE) Xdmx$(EXEEXT)
90