1706f2543Smrgbin_PROGRAMS = XWin
2706f2543Smrg
3706f2543Smrgif XWIN_CLIPBOARD
4706f2543SmrgSRCS_CLIPBOARD = \
5706f2543Smrg	winclipboardinit.c \
6706f2543Smrg	winclipboardtextconv.c \
7706f2543Smrg	winclipboardthread.c \
8706f2543Smrg	winclipboardunicode.c \
9706f2543Smrg	winclipboardwndproc.c \
10706f2543Smrg	winclipboardwrappers.c \
11706f2543Smrg	winclipboardxevents.c
12706f2543SmrgDEFS_CLIPBOARD = -DXWIN_CLIPBOARD
13706f2543Smrgendif
14706f2543Smrg
15706f2543Smrgif XWIN_GLX_WINDOWS
16706f2543SmrgGLX_DIR = glx
17706f2543SmrgDEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
18706f2543SmrgXWIN_GLX_LIBS = $(top_builddir)/hw/xwin/glx/libXwinGLX.la
19706f2543SmrgXWIN_GLX_LINK_FLAGS = -lopengl32
20706f2543Smrgendif
21706f2543Smrg
22706f2543Smrgif XWIN_MULTIWINDOW
23706f2543SmrgSRCS_MULTIWINDOW = \
24706f2543Smrg	winmultiwindowshape.c \
25706f2543Smrg	winmultiwindowwindow.c \
26706f2543Smrg	winmultiwindowwm.c \
27706f2543Smrg	winmultiwindowwndproc.c
28706f2543SmrgDEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW
29706f2543Smrgendif
30706f2543Smrg
31706f2543Smrgif XWIN_MULTIWINDOWEXTWM
32706f2543SmrgSRCS_MULTIWINDOWEXTWM = \
33706f2543Smrg	winwin32rootless.c \
34706f2543Smrg	winwin32rootlesswindow.c \
35706f2543Smrg	winwin32rootlesswndproc.c \
36706f2543Smrg	winwindowswm.c
37706f2543SmrgDEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
38706f2543SmrgMULTIWINDOWEXTWM_LIBS = $(top_builddir)/miext/rootless/librootless.la
39706f2543Smrgendif
40706f2543Smrg
41706f2543Smrgif XWIN_NATIVEGDI
42706f2543SmrgSRCS_NATIVEGDI = \
43706f2543Smrg	winclip.c \
44706f2543Smrg	winfillsp.c \
45706f2543Smrg	winfont.c \
46706f2543Smrg	wingc.c \
47706f2543Smrg	wingetsp.c \
48706f2543Smrg	winnativegdi.c \
49706f2543Smrg	winpixmap.c \
50706f2543Smrg	winpolyline.c \
51706f2543Smrg	winrop.c \
52706f2543Smrg	winsetsp.c
53706f2543SmrgDEFS_NATIVEGDI = -DXWIN_NATIVEGDI
54706f2543Smrgendif
55706f2543Smrg
56706f2543Smrgif XWIN_PRIMARYFB
57706f2543SmrgSRCS_PRIMARYFB = \
58706f2543Smrg	winpfbdd.c
59706f2543SmrgDEFS_PRIMARYFB = -DXWIN_PRIMARYFB
60706f2543Smrgendif
61706f2543Smrg
62706f2543Smrgif XWIN_RANDR
63706f2543SmrgSRCS_RANDR = \
64706f2543Smrg	winrandr.c
65706f2543SmrgDEFS_RANDR = -DXWIN_RANDR
66706f2543Smrgendif
67706f2543Smrg
68706f2543Smrgif XWIN_XV
69706f2543SmrgSRCS_XV = \
70706f2543Smrg	winvideo.c
71706f2543SmrgDEFS_XV = -DXWIN_XV
72706f2543Smrgendif
73706f2543Smrg
74706f2543SmrgSRCS =	InitInput.c \
75706f2543Smrg	InitOutput.c \
76706f2543Smrg	winallpriv.c \
77706f2543Smrg	winauth.c \
78706f2543Smrg	winblock.c \
79706f2543Smrg	wincmap.c \
80706f2543Smrg	winconfig.c \
81706f2543Smrg	wincreatewnd.c \
82706f2543Smrg	wincursor.c \
83706f2543Smrg	windialogs.c \
84706f2543Smrg	winengine.c \
85706f2543Smrg	winerror.c \
86706f2543Smrg	winglobals.c \
87706f2543Smrg	winkeybd.c \
88706f2543Smrg	winkeyhook.c \
89706f2543Smrg	winmisc.c \
90706f2543Smrg	winmonitors.c \
91706f2543Smrg	winmouse.c \
92706f2543Smrg	winmsg.c \
93706f2543Smrg	winmultiwindowclass.c \
94706f2543Smrg	winmultiwindowicons.c \
95706f2543Smrg	winprefs.c \
96706f2543Smrg	winprefsyacc.y \
97706f2543Smrg	winprefslex.l \
98706f2543Smrg	winprocarg.c \
99706f2543Smrg	winregistry.c \
100706f2543Smrg	winscrinit.c \
101706f2543Smrg	winshaddd.c \
102706f2543Smrg	winshadddnl.c \
103706f2543Smrg	winshadgdi.c \
104706f2543Smrg	wintrayicon.c \
105706f2543Smrg	winvalargs.c \
106706f2543Smrg	winwakeup.c \
107706f2543Smrg	winwindow.c \
108706f2543Smrg	winwndproc.c \
109706f2543Smrg	ddraw.h \
110706f2543Smrg	winclipboard.h \
111706f2543Smrg	winconfig.h \
112706f2543Smrg	win.h \
113706f2543Smrg	winkeybd.h \
114706f2543Smrg	winkeynames.h \
115706f2543Smrg	winlayouts.h \
116706f2543Smrg	winmessages.h \
117706f2543Smrg	winmsg.h \
118706f2543Smrg	winms.h \
119706f2543Smrg	winmultiwindowclass.h \
120706f2543Smrg	winprefs.h \
121706f2543Smrg	winresource.h \
122706f2543Smrg	winwindow.h \
123706f2543Smrg	XWin.rc \
124706f2543Smrg	$(top_srcdir)/Xext/dpmsstubs.c \
125706f2543Smrg	$(top_srcdir)/Xi/stubs.c \
126706f2543Smrg	$(top_srcdir)/mi/miinitext.c \
127706f2543Smrg	$(top_srcdir)/fb/fbcmap_mi.c \
128706f2543Smrg	$(SRCS_CLIPBOARD) \
129706f2543Smrg	$(SRCS_MULTIWINDOW) \
130706f2543Smrg	$(SRCS_MULTIWINDOWEXTWM) \
131706f2543Smrg	$(SRCS_NATIVEGDI) \
132706f2543Smrg	$(SRCS_PRIMARYFB) \
133706f2543Smrg	$(SRCS_RANDR) \
134706f2543Smrg	$(SRCS_XV)
135706f2543Smrg
136706f2543Smrg DEFS = $(DEFS_CLIPBOARD) \
137706f2543Smrg	$(DEFS_GLX_WINDOWS) \
138706f2543Smrg	$(DEFS_MULTIWINDOW) \
139706f2543Smrg	$(DEFS_MULTIWINDOWEXTWM) \
140706f2543Smrg	$(DEFS_NATIVEGDI) \
141706f2543Smrg	$(DEFS_PRIMARYFB) \
142706f2543Smrg	$(DEFS_RANDR) \
143706f2543Smrg	$(DEFS_XV)
144706f2543Smrg
145706f2543SmrgXWin_SOURCES = $(SRCS)
146706f2543Smrg
147706f2543SmrgINCLUDES = -I$(top_srcdir)/miext/rootless
148706f2543Smrg
149706f2543SmrgXWin_DEPENDENCIES = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS)
150706f2543SmrgXWin_LDADD = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_GLX_LINK_FLAGS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) $(XWIN_SYS_LIBS)
151706f2543SmrgXWin_LDFLAGS = -mwindows -static
152706f2543Smrg
153706f2543Smrg.rc.o:
154706f2543Smrg	$(AM_V_GEN)$(WINDRES) --use-temp-file -i $< --input-format=rc -o $@ -O coff -I $(top_builddir)/include
155706f2543Smrg
156706f2543Smrgwinprefsyacc.h: winprefsyacc.c
157706f2543Smrgwinprefslex.c: winprefslex.l winprefsyacc.c winprefsyacc.h
158706f2543Smrg
159706f2543SmrgBUILT_SOURCES = winprefsyacc.h winprefsyacc.c winprefslex.c
160706f2543SmrgCLEANFILES = $(BUILT_SOURCES)
161706f2543Smrg
162706f2543SmrgAM_YFLAGS = -d
163706f2543SmrgAM_LFLAGS = -i
164706f2543SmrgAM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
165706f2543Smrg            $(XWINMODULES_CFLAGS) \
166706f2543Smrg            -I$(top_srcdir) \
167706f2543Smrg            -Wno-bad-function-cast
168706f2543Smrg
169706f2543Smrgxwinconfigdir = $(sysconfdir)/X11
170706f2543Smrgxwinconfig_DATA = system.XWinrc
171706f2543Smrg
172706f2543Smrginstall-exec-hook:
173706f2543Smrg	(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) XWin$(EXEEXT) X)
174706f2543Smrg
175706f2543SmrgEXTRA_DIST = \
176706f2543Smrg	$(xwinconfig_DATA) \
177706f2543Smrg	X.ico \
178706f2543Smrg	XWin.rc \
179706f2543Smrg	xlaunch/config.cc \
180706f2543Smrg	xlaunch/COPYING \
181706f2543Smrg	xlaunch/main.cc \
182706f2543Smrg	xlaunch/resources/dialog.rc \
183706f2543Smrg	xlaunch/resources/fullscreen.bmp \
184706f2543Smrg	xlaunch/resources/images.rc \
185706f2543Smrg	xlaunch/resources/multiwindow.bmp \
186706f2543Smrg	xlaunch/resources/nodecoration.bmp \
187706f2543Smrg	xlaunch/resources/resources.h \
188706f2543Smrg	xlaunch/resources/resources.rc \
189706f2543Smrg	xlaunch/resources/strings.rc \
190706f2543Smrg	xlaunch/resources/windowed.bmp \
191706f2543Smrg	xlaunch/window/dialog.cc \
192706f2543Smrg	xlaunch/window/dialog.h \
193706f2543Smrg	xlaunch/window/util.cc \
194706f2543Smrg	xlaunch/window/util.h \
195706f2543Smrg	xlaunch/window/window.cc \
196706f2543Smrg	xlaunch/window/window.h \
197706f2543Smrg	xlaunch/window/wizard.cc \
198706f2543Smrg	xlaunch/window/wizard.h
199706f2543Smrg
200706f2543Smrgrelink:
201706f2543Smrg	$(AM_V_at)rm -f XWin$(EXEEXT) && $(MAKE) XWin$(EXEEXT)
202706f2543Smrg
203706f2543SmrgSUBDIRS = man $(GLX_DIR) .
204706f2543SmrgDIST_SUBDIRS = man glx .
205