2001-11-12 16:23:41 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2002-08-01 19:49:10 +00:00
|
|
|
INCLUDES= -I$(top_srcdir)/include
|
2001-04-11 16:47:08 +00:00
|
|
|
|
2012-02-07 07:04:19 +00:00
|
|
|
lib_ldflags=-version-info $(QUAKE_LIBRARY_VERSION_INFO) \
|
|
|
|
-rpath $(libdir) -no-undefined
|
|
|
|
|
2001-10-16 05:06:31 +00:00
|
|
|
lib_LTLIBRARIES= @JOY_TARGETS@
|
|
|
|
|
2002-08-07 18:21:36 +00:00
|
|
|
noinst_LTLIBRARIES= @VID_TARGETS@ @vid_libs@
|
2001-06-29 02:10:52 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
EXTRA_LTLIBRARIES= \
|
2012-02-15 00:50:40 +00:00
|
|
|
libQFjs.la libQFfbdev.la libQFsvga.la libQFx11.la libQFsdl.la libQFwgl.la \
|
2012-02-17 07:13:56 +00:00
|
|
|
libvid_common.la libvid_gl.la libvid_glsl.la libvid_sdl.la \
|
2012-02-15 00:50:40 +00:00
|
|
|
libvid_svga.la libvid_x11.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
2001-10-03 17:50:36 +00:00
|
|
|
joy_linux_src= joy_linux.c
|
|
|
|
joy_win_src= joy_win.c
|
|
|
|
joy_null_src= joy_null.c
|
2001-04-11 07:57:08 +00:00
|
|
|
if JOYTYPE_LINUX
|
2001-10-03 17:50:36 +00:00
|
|
|
joy_src= $(joy_linux_src)
|
2001-09-25 23:04:13 +00:00
|
|
|
else
|
2001-04-11 07:57:08 +00:00
|
|
|
if JOYTYPE_WIN32
|
2001-10-03 17:50:36 +00:00
|
|
|
joy_src= $(joy_win_src)
|
2001-09-25 23:04:13 +00:00
|
|
|
else
|
2001-10-03 17:50:36 +00:00
|
|
|
joy_src= $(joy_null_src)
|
2001-04-11 07:57:08 +00:00
|
|
|
endif
|
2001-09-25 23:04:13 +00:00
|
|
|
endif
|
2001-10-03 17:50:36 +00:00
|
|
|
|
2012-02-07 07:04:19 +00:00
|
|
|
js_libs=$(top_builddir)/libs/util/libQFutil.la
|
|
|
|
|
|
|
|
libQFjs_la_LDFLAGS= $(lib_ldflags)
|
|
|
|
libQFjs_la_LIBADD= $(js_libs)
|
|
|
|
libQFjs_la_DEPENDENCIES=$(js_libs)
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFjs_la_CFLAGS= @PREFER_PIC@ $(JOY_CFLAGS)
|
|
|
|
libQFjs_la_SOURCES= joy.c $(joy_src)
|
2001-10-03 17:50:36 +00:00
|
|
|
EXTRA_libQFjs_la_SOURCES= $(joy_linux_src) $(joy_win_src) $(joy_null_src)
|
2001-04-11 07:57:08 +00:00
|
|
|
|
2002-12-20 23:40:47 +00:00
|
|
|
libvid_common_la_SOURCES= \
|
2005-01-13 15:10:42 +00:00
|
|
|
in_common.c in_event.c keys.c old_keys.c vid.c
|
2002-12-20 23:40:47 +00:00
|
|
|
libvid_common_la_CFLAGS= @PREFER_NON_PIC@
|
2003-12-22 20:51:08 +00:00
|
|
|
libvid_common_la_LDFLAGS= @STATIC@
|
2002-08-01 19:49:10 +00:00
|
|
|
|
2002-12-20 23:40:47 +00:00
|
|
|
libvid_x11_la_SOURCES= in_x11.c context_x11.c dga_check.c
|
|
|
|
libvid_x11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
2003-12-22 20:51:08 +00:00
|
|
|
libvid_x11_la_LDFLAGS= @STATIC@
|
2002-08-01 19:49:10 +00:00
|
|
|
|
2002-12-20 23:40:47 +00:00
|
|
|
libvid_svga_la_SOURCES= in_svgalib.c
|
|
|
|
libvid_svga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
2003-12-22 20:51:08 +00:00
|
|
|
libvid_svga_la_LDFLAGS= @STATIC@
|
2002-08-01 19:49:10 +00:00
|
|
|
|
2002-12-20 23:40:47 +00:00
|
|
|
libvid_sdl_la_SOURCES= in_sdl.c context_sdl.c
|
|
|
|
libvid_sdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
2003-12-22 20:51:08 +00:00
|
|
|
libvid_sdl_la_LDFLAGS= @STATIC@
|
2001-08-09 23:16:54 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
2001-04-15 04:18:22 +00:00
|
|
|
# Linux FBdev
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
2001-10-03 17:50:36 +00:00
|
|
|
fbdev_c= fbset_modes_y.c fbset_modes_l.c
|
|
|
|
fbdev_h= fbset_modes_y.h
|
2001-04-15 06:29:57 +00:00
|
|
|
YFLAGS = -d
|
2001-10-03 17:50:36 +00:00
|
|
|
YACCLEX_CLEANFILES= $(fbdev_c) $(fbdev_h)
|
2001-09-28 05:33:58 +00:00
|
|
|
|
2012-02-15 00:50:40 +00:00
|
|
|
fbdev_libs=libvid_common.la
|
2002-08-01 19:49:10 +00:00
|
|
|
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
|
2003-12-22 20:51:08 +00:00
|
|
|
libQFfbdev_la_LDFLAGS= @STATIC@
|
2012-02-07 07:04:19 +00:00
|
|
|
libQFfbdev_la_LIBADD= $(fbdev_libs)
|
|
|
|
libQFfbdev_la_DEPENDENCIES= $(fbdev_libs)
|
2001-09-28 05:33:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Simple DirectMedia Library
|
|
|
|
#
|
2012-02-15 00:50:40 +00:00
|
|
|
sdl_libs=libvid_common.la libvid_sdl.la
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFsdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
|
|
libQFsdl_la_SOURCES= vid_sdl.c
|
2003-12-22 20:51:08 +00:00
|
|
|
libQFsdl_la_LDFLAGS= @STATIC@
|
2012-02-07 07:04:19 +00:00
|
|
|
libQFsdl_la_LIBADD= $(sdl_libs)
|
|
|
|
libQFsdl_la_DEPENDENCIES= $(sdl_libs)
|
2002-08-01 19:49:10 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
|
|
|
# SVGAlib
|
|
|
|
#
|
2012-02-17 07:13:56 +00:00
|
|
|
svga_libs=libvid_common.la libvid_svga.la
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFsvga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
|
|
libQFsvga_la_SOURCES= vid_svgalib.c
|
2003-12-22 20:51:08 +00:00
|
|
|
libQFsvga_la_LDFLAGS= @STATIC@
|
2012-02-07 07:04:19 +00:00
|
|
|
libQFsvga_la_LIBADD= $(svga_libs)
|
|
|
|
libQFsvga_la_DEPENDENCIES= $(svga_libs)
|
2001-09-28 05:33:58 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# OpenGL in Win32
|
|
|
|
#
|
2012-02-07 07:04:19 +00:00
|
|
|
wgl_libs=libvid_common.la libvid_gl.la
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFwgl_la_CFLAGS= @PREFER_NON_PIC@ $(WGL_CFLAGS)
|
|
|
|
libQFwgl_la_SOURCES= in_win.c vid_wgl.c
|
2003-12-22 20:51:08 +00:00
|
|
|
libQFwgl_la_LDFLAGS= @STATIC@
|
2012-02-07 07:04:19 +00:00
|
|
|
libQFwgl_la_LIBADD= $(wgl_libs)
|
|
|
|
libQFwgl_la_DEPENDENCIES= $(wgl_libs)
|
2001-04-16 16:11:45 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
|
|
|
# X11 software rendering
|
|
|
|
#
|
2012-02-15 00:50:40 +00:00
|
|
|
x11_libs=libvid_common.la libvid_x11.la
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFx11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
|
|
libQFx11_la_SOURCES= vid_x11.c
|
2003-12-22 20:51:08 +00:00
|
|
|
libQFx11_la_LDFLAGS= @STATIC@
|
2012-02-07 07:04:19 +00:00
|
|
|
libQFx11_la_LIBADD= $(x11_libs)
|
|
|
|
libQFx11_la_DEPENDENCIES= $(x11_libs)
|
2001-04-15 05:04:03 +00:00
|
|
|
|
|
|
|
# Kill the temp files, hopefully.
|
|
|
|
CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)
|
2001-10-03 17:50:36 +00:00
|
|
|
|
2001-10-15 23:09:03 +00:00
|
|
|
EXTRA_DIST= $(fbdev_c) $(fbdev_h)
|