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
|
|
|
|
2001-10-15 23:09:03 +00:00
|
|
|
if ASM_ARCH
|
|
|
|
asm= libasm.la
|
|
|
|
else
|
|
|
|
asm=
|
|
|
|
endif
|
|
|
|
|
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= \
|
2001-11-21 02:36:48 +00:00
|
|
|
libQFjs.la libQFfbdev.la libQFglx.la libQFsvga.la libQFtdfx.la \
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFx11.la libQFsdl.la libQFsdl32.la libQFsgl.la libQFwgl.la libasm.la \
|
|
|
|
libcommon.la libgl.la libsdl.la libsw.la libsw32.la libsvga.la libx11.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
2002-08-01 19:49:10 +00:00
|
|
|
libasm_la_SOURCES= d_copy.S
|
|
|
|
libasmn_la_CFLAGS= @PREFER_NON_PIC@
|
2001-06-14 19:52:38 +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
|
|
|
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFjs_la_LDFLAGS= -version-info 1:0:0 -rpath $(libdir)
|
|
|
|
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-08-01 19:49:10 +00:00
|
|
|
libcommon_la_SOURCES= in_common.c in_event.c keys.c old_keys.c vid.c
|
|
|
|
libcommon_la_CFLAGS= @PREFER_NON_PIC@
|
|
|
|
libcommon_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libsw_la_SOURCES= vid_common_sw.c
|
|
|
|
libsw_la_CFLAGS= @PREFER_NON_PIC@
|
|
|
|
libsw_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libsw32_la_SOURCES= vid_common_sw32.c
|
|
|
|
libsw32_la_CFLAGS= @PREFER_NON_PIC@
|
|
|
|
libsw32_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libgl_la_SOURCES= vid_common_gl.c qfgl_ext.c
|
|
|
|
libgl_la_CFLAGS= @PREFER_NON_PIC@
|
|
|
|
libgl_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libx11_la_SOURCES= in_x11.c context_x11.c dga_check.c
|
|
|
|
libx11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
|
|
libx11_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libsvga_la_SOURCES= in_svgalib.c
|
|
|
|
libsvga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
|
|
libsvga_la_LDFLAGS= -static
|
|
|
|
|
|
|
|
libsdl_la_SOURCES= in_sdl.c
|
|
|
|
libsdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
|
|
libsdl_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
|
|
|
|
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
|
|
|
|
libQFfbdev_la_LDFLAGS= -static
|
|
|
|
libQFfbdev_la_LIBADD= libcommon.la libsw.la
|
|
|
|
libQFfbdev_la_DEPENDENCIES= libcommon.la libsw.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# OpenGL in X Window
|
|
|
|
#
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFglx_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
|
|
libQFglx_la_SOURCES= vid_glx.c
|
|
|
|
libQFglx_la_LDFLAGS= -static
|
|
|
|
libQFglx_la_LIBADD= libcommon.la libgl.la libx11.la
|
|
|
|
libQFglx_la_DEPENDENCIES= libcommon.la libgl.la libx11.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Simple DirectMedia Library
|
|
|
|
#
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFsdl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
|
|
libQFsdl_la_SOURCES= vid_sdl.c
|
|
|
|
libQFsdl_la_LDFLAGS= -static
|
|
|
|
libQFsdl_la_LIBADD= libcommon.la libsw.la libsdl.la
|
|
|
|
libQFsdl_la_DEPENDENCIES= libcommon.la libsw.la libsdl.la
|
|
|
|
|
|
|
|
libQFsdl32_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
|
|
libQFsdl32_la_SOURCES= vid_sdl32.c
|
|
|
|
libQFsdl32_la_LDFLAGS= -static
|
|
|
|
libQFsdl32_la_LIBADD= libcommon.la libsw32.la libsdl.la
|
|
|
|
libQFsdl32_la_DEPENDENCIES= libcommon.la libsw32.la libsdl.la
|
|
|
|
|
|
|
|
libQFsgl_la_CFLAGS= @PREFER_NON_PIC@ $(SDL_CFLAGS)
|
|
|
|
libQFsgl_la_SOURCES= vid_sgl.c
|
|
|
|
libQFsgl_la_LDFLAGS= -static
|
|
|
|
libQFsgl_la_LIBADD= libcommon.la libgl.la libsdl.la
|
|
|
|
libQFsgl_la_DEPENDENCIES= libcommon.la libgl.la libsdl.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# SVGAlib
|
|
|
|
#
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFsvga_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
|
|
libQFsvga_la_SOURCES= vid_svgalib.c
|
|
|
|
libQFsvga_la_LDFLAGS= -static
|
|
|
|
libQFsvga_la_LIBADD= $(asm) libcommon.la libsw.la libsvga.la
|
|
|
|
libQFsvga_la_DEPENDENCIES= $(asm) libcommon.la libsw.la libsvga.la
|
2001-09-28 05:33:58 +00:00
|
|
|
|
2001-11-21 02:36:48 +00:00
|
|
|
#
|
|
|
|
# 3dfx
|
|
|
|
#
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFtdfx_la_CFLAGS= @PREFER_NON_PIC@ $(SVGA_CFLAGS)
|
|
|
|
libQFtdfx_la_SOURCES= vid_3dfxsvga.c
|
|
|
|
libQFtdfx_la_LDFLAGS= -static
|
|
|
|
libQFtdfx_la_LIBADD= $(asm) libcommon.la libgl.la libsvga.la
|
|
|
|
libQFtdfx_la_DEPENDENCIES= $(asm) libcommon.la libgl.la libsvga.la
|
2001-11-21 02:36:48 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
|
|
|
# OpenGL in Win32
|
|
|
|
#
|
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
|
|
|
|
libQFwgl_la_LDFLAGS= -static
|
|
|
|
libQFwgl_la_LIBADD= libcommon.la libgl.la
|
|
|
|
libQFwgl_la_DEPENDENCIES= libcommon.la libgl.la
|
2001-04-16 16:11:45 +00:00
|
|
|
|
2001-09-28 05:33:58 +00:00
|
|
|
#
|
|
|
|
# X11 software rendering
|
|
|
|
#
|
2002-08-01 19:49:10 +00:00
|
|
|
libQFx11_la_CFLAGS= @PREFER_NON_PIC@ $(X_CFLAGS)
|
|
|
|
libQFx11_la_SOURCES= vid_x11.c
|
|
|
|
libQFx11_la_LDFLAGS= -static
|
|
|
|
libQFx11_la_LIBADD= libcommon.la libsw.la libx11.la
|
|
|
|
libQFx11_la_DEPENDENCIES= libcommon.la libsw.la libx11.la
|
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)
|