2001-04-11 16:47:08 +00:00
|
|
|
INCLUDES= -I$(top_srcdir)/include
|
|
|
|
|
2001-04-15 06:04:02 +00:00
|
|
|
lib_LTLIBRARIES = libQFjs.la $(VID_TARGETS)
|
2001-04-11 07:57:08 +00:00
|
|
|
|
2001-04-15 04:18:22 +00:00
|
|
|
libQFjs_la_LDFLAGS= -version-info 1:0:0
|
2001-04-11 07:57:08 +00:00
|
|
|
|
|
|
|
if JOYTYPE_LINUX
|
2001-04-11 19:56:01 +00:00
|
|
|
libQFjs_la_SOURCES= joy.c joy_linux.c
|
2001-04-11 07:57:08 +00:00
|
|
|
endif
|
|
|
|
if JOYTYPE_WIN32
|
2001-04-11 19:56:01 +00:00
|
|
|
libQFjs_la_SOURCES= joy.c joy_win.c
|
2001-04-11 07:57:08 +00:00
|
|
|
endif
|
|
|
|
if JOYTYPE_NULL
|
2001-04-11 19:56:01 +00:00
|
|
|
libQFjs_la_SOURCES= joy.c joy_null.c
|
2001-04-11 07:57:08 +00:00
|
|
|
endif
|
|
|
|
libQFjs_la_CFLAGS= $(JOY_CFLAGS)
|
|
|
|
|
2001-04-15 04:18:22 +00:00
|
|
|
# Linux FBdev
|
2001-04-15 06:04:02 +00:00
|
|
|
if $(HAVE_FBDEV)
|
|
|
|
YFLAGS = -d
|
|
|
|
libQFfbdev_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFfbdev_la_SOURCES= fbset.c fbset_modes_y.y fbset_modes_l.l \
|
|
|
|
in_fbdev.c vid.c vid_fbdev.c
|
|
|
|
YACCLEX_CLEANFILES= fbset_modes_y.c fbset_modes_y.h \
|
|
|
|
fbset_modes_y.tab.h fbset_modes_l.c
|
|
|
|
EXTRA_libQFfbdev_la_SOURCES=fbset_modes_y.h
|
|
|
|
|
|
|
|
fbset_modes_y.lo: $(srcdir)/fbset_modes_y.c
|
|
|
|
$(COMPILE) -Wno-error -c $<
|
|
|
|
fbset_modes_l.lo: $(srcdir)/fbset_modes_l.c
|
|
|
|
$(COMPILE) -Wno-error -c $<
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_MGL)
|
|
|
|
libQFmgl_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFmgl_la_SOURCES= in_win.c vid.c vid_common_sw.c vid_mgl.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_SDL)
|
|
|
|
libQFsdl_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFsdl_la_SOURCES= in_sdl.c vid.c vid_common_sw.c vid_sdl.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_SVGA)
|
|
|
|
libQFsvga_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFsvga_la_SOURCES= d_copy.S in_svgalib.c vid.c vid_common_sw.c \
|
|
|
|
vid_svgalib.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_X11)
|
|
|
|
libQFx11_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFx11_la_SOURCES= in_x11.c vid.c context_x11.c dga_check.c \
|
|
|
|
vid_common_sw.c vid_x11.c
|
|
|
|
|
|
|
|
if $(HAVE_GLX)
|
|
|
|
libQFglx_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFglx_la_SOURCES= in_x11.c vid.c context_x11.c dga_check.c \
|
|
|
|
vid_common_gl.c vid_glx.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_SGL)
|
|
|
|
libQFsgl_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFsgl_la_SOURCES= in_sdl.c vid.c vid_common_gl.c vid_sgl.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_TDFX)
|
|
|
|
libQFtdfx_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFtdfx_la_SOURCES= in_svgalib.c vid.c vid_common_gl.c vid_3dfxsvga.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if $(HAVE_WGL)
|
|
|
|
libQFwgl_la_LDFLAGS= -version-info 1:0:0
|
|
|
|
libQFwgl_la_SOURCES= in_win.c vid.c vid_wgl.c
|
|
|
|
endif
|
2001-04-15 04:18:22 +00:00
|
|
|
|
|
|
|
LIBLIST = $(lib_LTLIBRARIES) @LIBRARY_SEARCH_PATH@
|
2001-04-15 05:04:03 +00:00
|
|
|
|
|
|
|
# Kill the temp files, hopefully.
|
|
|
|
CLEANFILES = *.i *.s $(YACCLEX_CLEANFILES)
|