1bin_PROGRAMS = XWin 2 3if XWIN_CLIPBOARD 4SRCS_CLIPBOARD = \ 5 winclipboardinit.c \ 6 winclipboardtextconv.c \ 7 winclipboardthread.c \ 8 winclipboardunicode.c \ 9 winclipboardwndproc.c \ 10 winclipboardwrappers.c \ 11 winclipboardxevents.c 12DEFS_CLIPBOARD = -DXWIN_CLIPBOARD 13endif 14 15if XWIN_GLX_WINDOWS 16GLX_DIR = glx 17DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS 18XWIN_GLX_LIBS = $(top_builddir)/hw/xwin/glx/libXwinGLX.la 19XWIN_GLX_LINK_FLAGS = -lopengl32 20endif 21 22if XWIN_MULTIWINDOW 23SRCS_MULTIWINDOW = \ 24 winmultiwindowshape.c \ 25 winmultiwindowwindow.c \ 26 winmultiwindowwm.c \ 27 winmultiwindowwndproc.c 28DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW 29endif 30 31if XWIN_MULTIWINDOWEXTWM 32SRCS_MULTIWINDOWEXTWM = \ 33 winwin32rootless.c \ 34 winwin32rootlesswindow.c \ 35 winwin32rootlesswndproc.c \ 36 winwindowswm.c 37DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM 38MULTIWINDOWEXTWM_LIBS = $(top_builddir)/miext/rootless/librootless.la 39endif 40 41if XWIN_NATIVEGDI 42SRCS_NATIVEGDI = \ 43 winclip.c \ 44 winfillsp.c \ 45 winfont.c \ 46 wingc.c \ 47 wingetsp.c \ 48 winnativegdi.c \ 49 winpixmap.c \ 50 winpolyline.c \ 51 winrop.c \ 52 winsetsp.c 53DEFS_NATIVEGDI = -DXWIN_NATIVEGDI 54endif 55 56if XWIN_PRIMARYFB 57SRCS_PRIMARYFB = \ 58 winpfbdd.c 59DEFS_PRIMARYFB = -DXWIN_PRIMARYFB 60endif 61 62if XWIN_RANDR 63SRCS_RANDR = \ 64 winrandr.c 65DEFS_RANDR = -DXWIN_RANDR 66endif 67 68if XWIN_XV 69SRCS_XV = \ 70 winvideo.c 71DEFS_XV = -DXWIN_XV 72endif 73 74SRCS = InitInput.c \ 75 InitOutput.c \ 76 winallpriv.c \ 77 winauth.c \ 78 winblock.c \ 79 wincmap.c \ 80 winconfig.c \ 81 wincreatewnd.c \ 82 wincursor.c \ 83 windialogs.c \ 84 winengine.c \ 85 winerror.c \ 86 winglobals.c \ 87 winkeybd.c \ 88 winkeyhook.c \ 89 winmisc.c \ 90 winmonitors.c \ 91 winmouse.c \ 92 winmsg.c \ 93 winmultiwindowclass.c \ 94 winmultiwindowicons.c \ 95 winprefs.c \ 96 winprefsyacc.y \ 97 winprefslex.l \ 98 winprocarg.c \ 99 winregistry.c \ 100 winscrinit.c \ 101 winshaddd.c \ 102 winshadddnl.c \ 103 winshadgdi.c \ 104 wintrayicon.c \ 105 winvalargs.c \ 106 winwakeup.c \ 107 winwindow.c \ 108 winwndproc.c \ 109 ddraw.h \ 110 winclipboard.h \ 111 winconfig.h \ 112 win.h \ 113 winkeybd.h \ 114 winkeynames.h \ 115 winlayouts.h \ 116 winmessages.h \ 117 winmsg.h \ 118 winms.h \ 119 winmultiwindowclass.h \ 120 winprefs.h \ 121 winresource.h \ 122 winwindow.h \ 123 XWin.rc \ 124 $(top_srcdir)/Xext/dpmsstubs.c \ 125 $(top_srcdir)/Xi/stubs.c \ 126 $(top_srcdir)/mi/miinitext.c \ 127 $(top_srcdir)/fb/fbcmap_mi.c \ 128 $(SRCS_CLIPBOARD) \ 129 $(SRCS_MULTIWINDOW) \ 130 $(SRCS_MULTIWINDOWEXTWM) \ 131 $(SRCS_NATIVEGDI) \ 132 $(SRCS_PRIMARYFB) \ 133 $(SRCS_RANDR) \ 134 $(SRCS_XV) 135 136 DEFS = $(DEFS_CLIPBOARD) \ 137 $(DEFS_GLX_WINDOWS) \ 138 $(DEFS_MULTIWINDOW) \ 139 $(DEFS_MULTIWINDOWEXTWM) \ 140 $(DEFS_NATIVEGDI) \ 141 $(DEFS_PRIMARYFB) \ 142 $(DEFS_RANDR) \ 143 $(DEFS_XV) 144 145XWin_SOURCES = $(SRCS) 146 147INCLUDES = -I$(top_srcdir)/miext/rootless 148 149XWin_DEPENDENCIES = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS) 150XWin_LDADD = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_GLX_LINK_FLAGS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) $(XWIN_SYS_LIBS) 151XWin_LDFLAGS = -mwindows -static 152 153.rc.o: 154 $(AM_V_GEN)$(WINDRES) --use-temp-file -i $< --input-format=rc -o $@ -O coff -I $(top_builddir)/include 155 156winprefsyacc.h: winprefsyacc.c 157winprefslex.c: winprefslex.l winprefsyacc.c winprefsyacc.h 158 159BUILT_SOURCES = winprefsyacc.h winprefsyacc.c winprefslex.c 160CLEANFILES = $(BUILT_SOURCES) 161 162AM_YFLAGS = -d 163AM_LFLAGS = -i 164AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \ 165 $(XWINMODULES_CFLAGS) \ 166 -I$(top_srcdir) \ 167 -Wno-bad-function-cast 168 169xwinconfigdir = $(sysconfdir)/X11 170xwinconfig_DATA = system.XWinrc 171 172install-exec-hook: 173 (cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) XWin$(EXEEXT) X) 174 175EXTRA_DIST = \ 176 $(xwinconfig_DATA) \ 177 X.ico \ 178 XWin.rc \ 179 xlaunch/config.cc \ 180 xlaunch/COPYING \ 181 xlaunch/main.cc \ 182 xlaunch/resources/dialog.rc \ 183 xlaunch/resources/fullscreen.bmp \ 184 xlaunch/resources/images.rc \ 185 xlaunch/resources/multiwindow.bmp \ 186 xlaunch/resources/nodecoration.bmp \ 187 xlaunch/resources/resources.h \ 188 xlaunch/resources/resources.rc \ 189 xlaunch/resources/strings.rc \ 190 xlaunch/resources/windowed.bmp \ 191 xlaunch/window/dialog.cc \ 192 xlaunch/window/dialog.h \ 193 xlaunch/window/util.cc \ 194 xlaunch/window/util.h \ 195 xlaunch/window/window.cc \ 196 xlaunch/window/window.h \ 197 xlaunch/window/wizard.cc \ 198 xlaunch/window/wizard.h 199 200relink: 201 $(AM_V_at)rm -f XWin$(EXEEXT) && $(MAKE) XWin$(EXEEXT) 202 203SUBDIRS = man $(GLX_DIR) . 204DIST_SUBDIRS = man glx . 205