2006-11-26 11:13:41 -07:00
|
|
|
bin_PROGRAMS = XWin
|
|
|
|
|
|
|
|
if XWIN_CLIPBOARD
|
|
|
|
SRCS_CLIPBOARD = \
|
|
|
|
winclipboardinit.c \
|
|
|
|
winclipboardtextconv.c \
|
|
|
|
winclipboardthread.c \
|
|
|
|
winclipboardunicode.c \
|
|
|
|
winclipboardwndproc.c \
|
|
|
|
winclipboardwrappers.c \
|
|
|
|
winclipboardxevents.c
|
|
|
|
DEFS_CLIPBOARD = -DXWIN_CLIPBOARD
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_GLX_WINDOWS
|
2010-12-05 08:36:02 -07:00
|
|
|
GLX_DIR = glx
|
2006-11-26 11:13:41 -07:00
|
|
|
DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
|
2010-12-05 08:36:02 -07:00
|
|
|
XWIN_GLX_LIBS = $(top_builddir)/hw/xwin/glx/libXwinGLX.la
|
|
|
|
XWIN_GLX_LINK_FLAGS = -lopengl32
|
2006-11-26 11:13:41 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_MULTIWINDOW
|
|
|
|
SRCS_MULTIWINDOW = \
|
|
|
|
winmultiwindowshape.c \
|
|
|
|
winmultiwindowwindow.c \
|
|
|
|
winmultiwindowwm.c \
|
|
|
|
winmultiwindowwndproc.c
|
|
|
|
DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_MULTIWINDOWEXTWM
|
|
|
|
SRCS_MULTIWINDOWEXTWM = \
|
|
|
|
winwin32rootless.c \
|
|
|
|
winwin32rootlesswindow.c \
|
|
|
|
winwin32rootlesswndproc.c \
|
|
|
|
winwindowswm.c
|
|
|
|
DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
|
2010-07-27 13:02:24 -06:00
|
|
|
MULTIWINDOWEXTWM_LIBS = $(top_builddir)/miext/rootless/librootless.la
|
2006-11-26 11:13:41 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_NATIVEGDI
|
|
|
|
SRCS_NATIVEGDI = \
|
|
|
|
winclip.c \
|
|
|
|
winfillsp.c \
|
|
|
|
winfont.c \
|
|
|
|
wingc.c \
|
|
|
|
wingetsp.c \
|
|
|
|
winnativegdi.c \
|
|
|
|
winpixmap.c \
|
|
|
|
winpolyline.c \
|
|
|
|
winrop.c \
|
|
|
|
winsetsp.c
|
|
|
|
DEFS_NATIVEGDI = -DXWIN_NATIVEGDI
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_PRIMARYFB
|
|
|
|
SRCS_PRIMARYFB = \
|
|
|
|
winpfbdd.c
|
|
|
|
DEFS_PRIMARYFB = -DXWIN_PRIMARYFB
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_RANDR
|
|
|
|
SRCS_RANDR = \
|
|
|
|
winrandr.c
|
|
|
|
DEFS_RANDR = -DXWIN_RANDR
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_XV
|
|
|
|
SRCS_XV = \
|
|
|
|
winvideo.c
|
|
|
|
DEFS_XV = -DXWIN_XV
|
|
|
|
endif
|
|
|
|
|
|
|
|
SRCS = InitInput.c \
|
|
|
|
InitOutput.c \
|
|
|
|
winallpriv.c \
|
|
|
|
winauth.c \
|
|
|
|
winblock.c \
|
|
|
|
wincmap.c \
|
|
|
|
winconfig.c \
|
|
|
|
wincreatewnd.c \
|
|
|
|
wincursor.c \
|
|
|
|
windialogs.c \
|
|
|
|
winengine.c \
|
|
|
|
winerror.c \
|
|
|
|
winglobals.c \
|
|
|
|
winkeybd.c \
|
|
|
|
winkeyhook.c \
|
|
|
|
winmisc.c \
|
2011-11-05 07:32:40 -06:00
|
|
|
winmonitors.c \
|
2006-11-26 11:13:41 -07:00
|
|
|
winmouse.c \
|
|
|
|
winmsg.c \
|
|
|
|
winmultiwindowclass.c \
|
|
|
|
winmultiwindowicons.c \
|
|
|
|
winprefs.c \
|
|
|
|
winprefsyacc.y \
|
|
|
|
winprefslex.l \
|
|
|
|
winprocarg.c \
|
|
|
|
winregistry.c \
|
|
|
|
winscrinit.c \
|
|
|
|
winshaddd.c \
|
|
|
|
winshadddnl.c \
|
|
|
|
winshadgdi.c \
|
|
|
|
wintrayicon.c \
|
|
|
|
winvalargs.c \
|
|
|
|
winwakeup.c \
|
|
|
|
winwindow.c \
|
|
|
|
winwndproc.c \
|
|
|
|
ddraw.h \
|
|
|
|
winclipboard.h \
|
|
|
|
winconfig.h \
|
|
|
|
win.h \
|
|
|
|
winkeybd.h \
|
|
|
|
winkeynames.h \
|
|
|
|
winlayouts.h \
|
|
|
|
winmessages.h \
|
|
|
|
winmsg.h \
|
|
|
|
winms.h \
|
|
|
|
winmultiwindowclass.h \
|
|
|
|
winprefs.h \
|
|
|
|
winresource.h \
|
|
|
|
winwindow.h \
|
2010-07-27 13:02:24 -06:00
|
|
|
XWin.rc \
|
|
|
|
$(top_srcdir)/Xext/dpmsstubs.c \
|
|
|
|
$(top_srcdir)/Xi/stubs.c \
|
2006-11-26 11:13:41 -07:00
|
|
|
$(top_srcdir)/mi/miinitext.c \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(top_srcdir)/fb/fbcmap_mi.c \
|
2006-11-26 11:13:41 -07:00
|
|
|
$(SRCS_CLIPBOARD) \
|
|
|
|
$(SRCS_MULTIWINDOW) \
|
|
|
|
$(SRCS_MULTIWINDOWEXTWM) \
|
|
|
|
$(SRCS_NATIVEGDI) \
|
|
|
|
$(SRCS_PRIMARYFB) \
|
|
|
|
$(SRCS_RANDR) \
|
|
|
|
$(SRCS_XV)
|
|
|
|
|
|
|
|
DEFS = $(DEFS_CLIPBOARD) \
|
|
|
|
$(DEFS_GLX_WINDOWS) \
|
|
|
|
$(DEFS_MULTIWINDOW) \
|
|
|
|
$(DEFS_MULTIWINDOWEXTWM) \
|
|
|
|
$(DEFS_NATIVEGDI) \
|
|
|
|
$(DEFS_PRIMARYFB) \
|
|
|
|
$(DEFS_RANDR) \
|
|
|
|
$(DEFS_XV)
|
|
|
|
|
|
|
|
XWin_SOURCES = $(SRCS)
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
INCLUDES = -I$(top_srcdir)/miext/rootless
|
2008-11-02 08:26:08 -07:00
|
|
|
|
2010-12-05 08:36:02 -07:00
|
|
|
XWin_DEPENDENCIES = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS)
|
|
|
|
XWin_LDADD = $(MULTIWINDOWEXTWM_LIBS) $(XWIN_GLX_LIBS) $(XWIN_GLX_LINK_FLAGS) $(XWIN_LIBS) $(MAIN_LIB) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) $(XWIN_SYS_LIBS)
|
|
|
|
XWin_LDFLAGS = -mwindows -static
|
2010-07-27 13:02:24 -06:00
|
|
|
|
|
|
|
.rc.o:
|
|
|
|
$(AM_V_GEN)$(WINDRES) --use-temp-file -i $< --input-format=rc -o $@ -O coff -I $(top_builddir)/include
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
winprefsyacc.h: winprefsyacc.c
|
|
|
|
winprefslex.c: winprefslex.l winprefsyacc.c winprefsyacc.h
|
|
|
|
|
|
|
|
BUILT_SOURCES = winprefsyacc.h winprefsyacc.c winprefslex.c
|
2011-11-05 07:32:40 -06:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
AM_YFLAGS = -d
|
|
|
|
AM_LFLAGS = -i
|
2007-11-24 10:55:21 -07:00
|
|
|
AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(XWINMODULES_CFLAGS) \
|
2011-11-05 07:32:40 -06:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-Wno-bad-function-cast
|
2010-07-27 13:02:24 -06:00
|
|
|
|
|
|
|
xwinconfigdir = $(sysconfdir)/X11
|
|
|
|
xwinconfig_DATA = system.XWinrc
|
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) XWin$(EXEEXT) X)
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
EXTRA_DIST = \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(xwinconfig_DATA) \
|
2006-11-26 11:13:41 -07:00
|
|
|
X.ico \
|
2011-11-05 07:32:40 -06:00
|
|
|
XWin.rc
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
relink:
|
2010-07-27 13:02:24 -06:00
|
|
|
$(AM_V_at)rm -f XWin$(EXEEXT) && $(MAKE) XWin$(EXEEXT)
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
SUBDIRS = man $(GLX_DIR) .
|
|
|
|
DIST_SUBDIRS = man glx .
|