mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
d14da7f34a
The win clients are the native windows (NOT sdl!! *twitch*). Things are already looking on the up: only three errors in in_win.c. I'm not looking forward to vid_win.c (ex vid_wgl.c), though.
117 lines
3 KiB
Makefile
117 lines
3 KiB
Makefile
AUTOMAKE_OPTIONS= foreign
|
|
|
|
INCLUDES= -I$(top_srcdir)/include
|
|
|
|
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \
|
|
-rpath $(libdir) -no-undefined
|
|
|
|
lib_LTLIBRARIES= @JOY_TARGETS@
|
|
|
|
noinst_LTLIBRARIES= @VID_TARGETS@ @vid_libs@
|
|
|
|
EXTRA_LTLIBRARIES= \
|
|
libQFjs.la libQFfbdev.la libQFsvga.la libQFx11.la libQFsdl.la libQFwin.la \
|
|
libvid_common.la libvid_sdl.la \
|
|
libvid_svga.la libvid_x11.la
|
|
|
|
joy_linux_src= joy_linux.c
|
|
joy_win_src= joy_win.c
|
|
joy_null_src= joy_null.c
|
|
if JOYTYPE_LINUX
|
|
joy_src= $(joy_linux_src)
|
|
else
|
|
if JOYTYPE_WIN32
|
|
joy_src= $(joy_win_src)
|
|
else
|
|
joy_src= $(joy_null_src)
|
|
endif
|
|
endif
|
|
|
|
js_libs=$(top_builddir)/libs/util/libQFutil.la
|
|
|
|
libQFjs_la_LDFLAGS= $(lib_ldflags)
|
|
libQFjs_la_LIBADD= $(js_libs)
|
|
libQFjs_la_DEPENDENCIES=$(js_libs)
|
|
libQFjs_la_CFLAGS= @PREFER_PIC@ $(JOY_CFLAGS)
|
|
libQFjs_la_SOURCES= joy.c $(joy_src)
|
|
EXTRA_libQFjs_la_SOURCES= $(joy_linux_src) $(joy_win_src) $(joy_null_src)
|
|
|
|
libvid_common_la_SOURCES= \
|
|
in_common.c in_event.c keys.c old_keys.c pr_keys.c vid.c
|
|
libvid_common_la_CFLAGS= @PREFER_NON_PIC@
|
|
libvid_common_la_LDFLAGS= @STATIC@
|
|
|
|
libvid_x11_la_SOURCES= in_x11.c context_x11.c dga_check.c
|
|
libvid_x11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
libvid_x11_la_LDFLAGS= @STATIC@
|
|
|
|
libvid_svga_la_SOURCES= in_svgalib.c
|
|
libvid_svga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
libvid_svga_la_LDFLAGS= @STATIC@
|
|
|
|
libvid_sdl_la_SOURCES= in_sdl.c context_sdl.c
|
|
libvid_sdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
libvid_sdl_la_LDFLAGS= @STATIC@
|
|
|
|
#
|
|
# Linux FBdev
|
|
#
|
|
fbdev_c= fbset_modes_y.c fbset_modes_l.c
|
|
fbdev_h= fbset_modes_y.h
|
|
YFLAGS = -d
|
|
YACCLEX_CLEANFILES= $(fbdev_c) $(fbdev_h)
|
|
BUILT_SOURCES= $(fbdev_c) $(fbdev_h)
|
|
|
|
fbdev_libs=libvid_common.la
|
|
libQFfbdev_la_CFLAGS= @PREFER_NON_PIC@
|
|
libQFfbdev_la_SOURCES= fbset.c fbset_modes_y.y fbset_modes_l.l \
|
|
in_fbdev.c vid_fbdev.c
|
|
libQFfbdev_la_LDFLAGS= @STATIC@
|
|
libQFfbdev_la_LIBADD= $(fbdev_libs)
|
|
libQFfbdev_la_DEPENDENCIES= $(fbdev_libs)
|
|
|
|
|
|
#
|
|
# Simple DirectMedia Library
|
|
#
|
|
sdl_libs=libvid_common.la libvid_sdl.la
|
|
libQFsdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
libQFsdl_la_SOURCES= vid_sdl.c
|
|
libQFsdl_la_LDFLAGS= @STATIC@
|
|
libQFsdl_la_LIBADD= $(sdl_libs)
|
|
libQFsdl_la_DEPENDENCIES= $(sdl_libs)
|
|
|
|
#
|
|
# SVGAlib
|
|
#
|
|
svga_libs=libvid_common.la libvid_svga.la
|
|
libQFsvga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
libQFsvga_la_SOURCES= vid_svgalib.c
|
|
libQFsvga_la_LDFLAGS= @STATIC@
|
|
libQFsvga_la_LIBADD= $(svga_libs)
|
|
libQFsvga_la_DEPENDENCIES= $(svga_libs)
|
|
|
|
#
|
|
# OpenGL in Win32
|
|
#
|
|
win_libs=libvid_common.la libvid_gl.la
|
|
libQFwin_la_CFLAGS= @PREFER_NON_PIC@ $(WGL_CFLAGS)
|
|
libQFwin_la_SOURCES= in_win.c vid_win.c
|
|
libQFwin_la_LDFLAGS= @STATIC@
|
|
libQFwin_la_LIBADD= $(win_libs)
|
|
libQFwin_la_DEPENDENCIES= $(win_libs)
|
|
|
|
#
|
|
# X11 software rendering
|
|
#
|
|
x11_libs=libvid_common.la libvid_x11.la
|
|
libQFx11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
libQFx11_la_SOURCES= vid_x11.c
|
|
libQFx11_la_LDFLAGS= @STATIC@
|
|
libQFx11_la_LIBADD= $(x11_libs)
|
|
libQFx11_la_DEPENDENCIES= $(x11_libs)
|
|
|
|
# Kill the temp files, hopefully.
|
|
CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)
|
|
|
|
EXTRA_DIST= $(fbdev_c) $(fbdev_h)
|