2010-08-19 06:01:43 +00:00
|
|
|
dnl ==================================================================
|
|
|
|
dnl Find out what to build
|
|
|
|
dnl ==================================================================
|
|
|
|
|
|
|
|
QF_WITH_TARGETS(
|
|
|
|
clients,
|
|
|
|
[ --with-clients=<list> compile clients in <list>:],
|
2012-02-08 12:50:16 +00:00
|
|
|
[3dfx,fbdev,glx,glslx,mgl,sdl,sdl32,sgl,sglsl,svga,wgl,x11],dummy
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
|
|
|
QF_WITH_TARGETS(
|
|
|
|
servers,
|
|
|
|
[ --with-servers=<list> compile dedicated server:],
|
|
|
|
[master,nq,qw,qtv],dummy
|
|
|
|
)
|
|
|
|
QF_WITH_TARGETS(
|
|
|
|
tools,
|
|
|
|
[ --with-tools=<list> compile qf tools:],
|
2011-01-09 09:33:51 +00:00
|
|
|
[bsp2img,carne,gsc,pak,qfbsp,qfcc,qflight,qflmp,qfmodelgen,qfvis,qwaq,wad,wav],dummy
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
unset CL_TARGETS
|
|
|
|
HW_TARGETS=""
|
|
|
|
QTV_TARGETS=""
|
|
|
|
QW_TARGETS=""
|
|
|
|
NQ_TARGETS=""
|
|
|
|
QW_DESKTOP_DATA=""
|
|
|
|
NQ_DESKTOP_DATA=""
|
|
|
|
|
|
|
|
CD_TARGETS=""
|
|
|
|
SND_PLUGIN_TARGETS="snd_output_disk.la"
|
|
|
|
SND_REND_TARGETS=""
|
|
|
|
SND_TARGETS=""
|
|
|
|
VID_MODEL_TARGETS=""
|
|
|
|
VID_REND_TARGETS=""
|
|
|
|
VID_REND_NOINST_TARGETS=""
|
|
|
|
VID_TARGETS=""
|
|
|
|
|
|
|
|
if test "x$HAVE_FBDEV" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_fbdev" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-fbdev\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-fbdev\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS FBDEV"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFfbdev.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sw])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_X" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_glx" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-glx\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-glx\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-glx.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-glx.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS GLX"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFglx.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [gl])
|
|
|
|
QF_NEED(QFmodels, [gl])
|
|
|
|
QF_NEED(alias, [gl])
|
|
|
|
QF_NEED(brush, [gl])
|
|
|
|
QF_NEED(sprite, [gl])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common gl x11])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
2011-12-23 03:19:13 +00:00
|
|
|
if test "x$ENABLE_clients_glslx" = xyes; then
|
2011-12-25 07:41:14 +00:00
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-glslx\$(EXEEXT)"
|
2011-12-23 03:19:13 +00:00
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-glslx\$(EXEEXT)"
|
2011-12-25 07:41:14 +00:00
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-glx.desktop"
|
2011-12-23 03:19:13 +00:00
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-glslx.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS GLSLX"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFglslx.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [glsl])
|
|
|
|
QF_NEED(QFmodels, [glsl])
|
|
|
|
QF_NEED(alias, [glsl])
|
|
|
|
QF_NEED(brush, [glsl])
|
|
|
|
QF_NEED(sprite, [glsl])
|
2011-12-23 03:19:13 +00:00
|
|
|
QF_NEED(vid, [common glsl x11])
|
2012-02-07 23:25:50 +00:00
|
|
|
QF_NEED(qw, [client common])
|
2011-12-23 03:19:13 +00:00
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$ENABLE_clients_x11" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-x11\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-x11\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-x11.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-x11.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS X11"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFx11.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sw x11])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_MGL" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_mgl" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-mgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-mgl\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS MGL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFwgl.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sw])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_SDL" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_sdl" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sdl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sdl\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-sdl.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-sdl.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsdl.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sdl sw])
|
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_clients_sdl32" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sdl32\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sdl32\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-sdl32.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-sdl32.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL32"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsdl32.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw32])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sdl sw32])
|
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_clients_sgl" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sgl\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-sgl.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-sgl.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL-GL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsgl.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [gl])
|
|
|
|
QF_NEED(QFmodels, [gl])
|
|
|
|
QF_NEED(alias, [gl])
|
|
|
|
QF_NEED(brush, [gl])
|
|
|
|
QF_NEED(sprite, [gl])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common sdl gl])
|
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
|
|
|
QF_NEED(console, [client])
|
2012-02-08 12:50:16 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_clients_sglsl" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-sglsl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-sglsl\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA quakeforge-qw-sglsl.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA quakeforge-nq-sglsl.desktop"
|
|
|
|
CL_TARGETS="$CL_TARGETS SDL-GLSL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsglsl.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [glsl])
|
|
|
|
QF_NEED(QFmodels, [glsl])
|
|
|
|
QF_NEED(alias, [glsl])
|
|
|
|
QF_NEED(brush, [glsl])
|
|
|
|
QF_NEED(sprite, [glsl])
|
2012-02-08 12:50:16 +00:00
|
|
|
QF_NEED(vid, [common sdl glsl])
|
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
|
|
|
QF_NEED(console, [client])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_SVGA" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_svga" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-svga\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-svga\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS SVGAlib"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFsvga.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [sw])
|
|
|
|
QF_NEED(QFmodels, [sw])
|
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [asm common svga sw])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_clients_3dfx" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-3dfx\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-3dfx\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS 3dfx"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFtdfx.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [gl])
|
|
|
|
QF_NEED(QFmodels, [gl])
|
|
|
|
QF_NEED(alias, [gl])
|
|
|
|
QF_NEED(brush, [gl])
|
|
|
|
QF_NEED(sprite, [gl])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [asm common gl svga])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$mingw" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_wgl" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-wgl\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-wgl\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS WGL"
|
|
|
|
VID_TARGETS="$VID_TARGETS libQFwgl.la"
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(QFrenderer, [gl])
|
|
|
|
QF_NEED(QFmodels, [gl])
|
|
|
|
QF_NEED(alias, [gl])
|
|
|
|
QF_NEED(brush, [gl])
|
|
|
|
QF_NEED(sprite, [gl])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(vid, [common gl])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset SV_TARGETS
|
|
|
|
if test "x$ENABLE_servers_nq" = xyes; then
|
|
|
|
NQ_TARGETS="nq-server\$(EXEEXT) $NQ_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS nq"
|
|
|
|
QF_NEED(nq, [common server])
|
|
|
|
QF_NEED(console, [server])
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_servers_qtv" = xyes; then
|
|
|
|
QTV_TARGETS="qtv\$(EXEEXT) $QTV_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS qtv"
|
|
|
|
# QF_NEED(qtv, [common server])
|
|
|
|
QF_NEED(console, [server])
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_servers_master" = xyes; then
|
|
|
|
HW_TARGETS="hw-master\$(EXEEXT) $HW_TARGETS"
|
|
|
|
QW_TARGETS="qw-master\$(EXEEXT) $QW_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS master"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLE_servers_qw" = xyes; then
|
|
|
|
QW_TARGETS="qw-server\$(EXEEXT) $QW_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS qw"
|
|
|
|
QF_NEED(qw, [common server])
|
|
|
|
QF_NEED(console, [server])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$ENABLE_tools_bsp2img" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[bsp2img])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_carne" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[carne])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_pak" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[pak])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfbsp" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfbsp])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfcc" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfcc])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qflight" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qflight])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
2011-01-09 09:33:51 +00:00
|
|
|
if test "x$ENABLE_tools_qflmp" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qflmp])
|
2011-01-09 09:33:51 +00:00
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$ENABLE_tools_qfmodelgen" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfmodelgen])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfvis" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfvis])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qwaq" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qwaq])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_wad" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[wad])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_wav" = xyes; then
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[wav])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_PROCESS_NEED_DIRS(tools,[bsp2img carne pak qfbsp qfcc qflight qflmp qfmodelgen qfvis qwaq wad wav])
|
|
|
|
|
2010-08-19 06:01:43 +00:00
|
|
|
AM_CONDITIONAL(BUILD_RUAMOKO, test "$ENABLE_tools_qfcc" = "yes" -a "$ENABLE_tools_pak" = "yes")
|
|
|
|
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(swrend, [asm])
|
|
|
|
QF_PROCESS_NEED_LIBS(QFrenderer, [gl glsl sw sw32])
|
|
|
|
QF_PROCESS_NEED_DIRS(QFrenderer, [gl glsl sw sw32])
|
|
|
|
QF_PROCESS_NEED_LIBS(QFmodels, [gl glsl sw])
|
|
|
|
QF_PROCESS_NEED_LIBS(alias, [gl glsl sw])
|
|
|
|
QF_PROCESS_NEED_LIBS(brush, [gl glsl sw])
|
|
|
|
QF_PROCESS_NEED_LIBS(sprite, [gl glsl sw])
|
2010-08-19 06:01:43 +00:00
|
|
|
|
2012-02-09 16:30:41 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(vid, [asm common gl glsl sdl sw sw32 svga x11])
|
|
|
|
QF_PROCESS_NEED_LIBS(qw, [client common sdl server], a)
|
|
|
|
QF_PROCESS_NEED_LIBS(nq, [client common sdl server], a)
|
2010-08-19 06:01:43 +00:00
|
|
|
|
2010-12-23 06:56:03 +00:00
|
|
|
SND_OUTPUT_DEFAULT=""
|
2010-08-19 06:01:43 +00:00
|
|
|
if test -n "$CL_TARGETS"; then
|
|
|
|
CD_TARGETS="libQFcd.la"
|
|
|
|
SND_TARGETS="libQFsound.la"
|
2011-08-02 02:24:51 +00:00
|
|
|
AUDIO_TARGETS="testsound\$(EXEEXT)"
|
2010-08-19 06:01:43 +00:00
|
|
|
JOY_TARGETS="libQFjs.la"
|
|
|
|
else
|
|
|
|
unset CDTYPE
|
|
|
|
CD_PLUGIN_TARGETS=""
|
|
|
|
CD_TARGETS=""
|
|
|
|
JOY_TARGETS=""
|
|
|
|
SND_PLUGIN_TARGETS=""
|
|
|
|
SND_REND_TARGETS=""
|
|
|
|
SND_TARGETS=""
|
2011-07-30 06:03:19 +00:00
|
|
|
AUDIO_TARGETS=""
|
2010-08-19 06:01:43 +00:00
|
|
|
unset SOUND_TYPES
|
|
|
|
fi
|
2010-12-23 06:56:03 +00:00
|
|
|
AC_DEFINE_UNQUOTED(SND_OUTPUT_DEFAULT, "$SND_OUTPUT_DEFAULT", [Define this to the default sound output driver.])
|
2010-08-19 06:01:43 +00:00
|
|
|
|
|
|
|
CD_PLUGIN_STATIC=""
|
|
|
|
SND_PLUGIN_STATIC=""
|
|
|
|
SND_REND_STATIC=""
|
|
|
|
|
|
|
|
if test "x$enable_shared" = xno; then
|
|
|
|
PREFER_PIC=
|
|
|
|
PREFER_NON_PIC=
|
|
|
|
else
|
|
|
|
PREFER_PIC="-prefer-pic ${VISIBILITY}"
|
|
|
|
PREFER_NON_PIC="-prefer-non-pic ${VISIBILITY}"
|
|
|
|
fi
|
|
|
|
if test "x$enable_static" = xno; then
|
|
|
|
STATIC=
|
|
|
|
else
|
|
|
|
STATIC=-static
|
|
|
|
fi
|
|
|
|
AC_SUBST(PREFER_PIC)
|
|
|
|
AC_SUBST(PREFER_NON_PIC)
|
|
|
|
AC_SUBST(STATIC)
|
|
|
|
|
|
|
|
AC_ARG_WITH(static-plugins,
|
|
|
|
[ --with-static-plugins build plugins into executable rather than separate],
|
|
|
|
static_plugins="$withval", static_plugins=auto)
|
|
|
|
if test "x$static_plugins" = xauto; then
|
|
|
|
if test "x$enable_shared" = xno -o "x$SYSTYPE" = xWIN32; then
|
|
|
|
static_plugins=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$static_plugins" = xyes; then
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(console, [server], [\$(top_builddir)/libs/console], [server])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(console, [client], [\$(top_builddir)/libs/console], [client])
|
|
|
|
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(snd_output, [sdl mme sgi sun win dx oss alsa], [targets])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(snd_render, [jack default], [renderer])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(cd, [xmms sdl sgi win linux file])
|
2010-08-19 06:01:43 +00:00
|
|
|
AC_DEFINE(STATIC_PLUGINS, 1, [Define this if you are building static plugins])
|
|
|
|
if test -n "$SOUND_TYPES"; then
|
|
|
|
SOUND_TYPES="$SOUND_TYPES (static)"
|
2012-02-12 02:37:25 +00:00
|
|
|
fi
|
|
|
|
if test -n "$CDTYPE"; then
|
2010-08-19 06:01:43 +00:00
|
|
|
CDTYPE="$CDTYPE (static)"
|
|
|
|
fi
|
2012-02-12 02:37:25 +00:00
|
|
|
else
|
2012-02-12 09:35:00 +00:00
|
|
|
QF_PROCESS_NEED_PLUGINS(console, [server], [server])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(client, [client], [client])
|
2012-02-12 02:37:25 +00:00
|
|
|
QF_PROCESS_NEED_PLUGINS(snd_output, [sdl mme sgi sun win dx oss alsa])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(snd_render, [jack default])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(cd, [xmms sdl sgi win linux file])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Do not use -module here, it belongs in makefile.am due to automake
|
|
|
|
dnl needing it there to work correctly
|
|
|
|
AC_DEFINE_UNQUOTED(CD_PLUGIN_LIST, $CD_PLUGIN_LIST, [list of cd plugins])
|
|
|
|
AC_DEFINE_UNQUOTED(CD_PLUGIN_PROTOS, $CD_PLUGIN_PROTOS, [list of cd prototypes])
|
|
|
|
|
|
|
|
AC_SUBST(HW_TARGETS)
|
|
|
|
AC_SUBST(NQ_TARGETS)
|
|
|
|
AC_SUBST(NQ_DESKTOP_DATA)
|
|
|
|
AC_SUBST(QTV_TARGETS)
|
|
|
|
AC_SUBST(QW_TARGETS)
|
|
|
|
AC_SUBST(QW_DESKTOP_DATA)
|
|
|
|
AC_SUBST(CD_TARGETS)
|
|
|
|
AC_SUBST(JOY_TARGETS)
|
|
|
|
AC_SUBST(SND_TARGETS)
|
2011-07-30 06:03:19 +00:00
|
|
|
AC_SUBST(AUDIO_TARGETS)
|
2010-08-19 06:01:43 +00:00
|
|
|
AC_SUBST(VID_MODEL_TARGETS)
|
|
|
|
AC_SUBST(VID_REND_TARGETS)
|
|
|
|
AC_SUBST(VID_REND_NOINST_TARGETS)
|
|
|
|
AC_SUBST(VID_TARGETS)
|
|
|
|
|
|
|
|
QF_DEPS(BSP2IMG,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QFBSP,
|
|
|
|
[-I$(top_srcdir)/tools/qfbsp/include],
|
2012-02-05 05:25:22 +00:00
|
|
|
[$(top_builddir)/libs/models/libQFmodels.la $(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QFCC,
|
|
|
|
[-I$(top_srcdir)/tools/qfcc/include],
|
2012-02-06 14:44:52 +00:00
|
|
|
[$(top_builddir)/libs/gamecode/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QFLIGHT,
|
|
|
|
[-I$(top_srcdir)/tools/qflight/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2011-01-09 09:33:51 +00:00
|
|
|
QF_DEPS(QFLMP,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_DEPS(QFMODELGEN,
|
|
|
|
[-I$(top_srcdir)/tools/qfmodelgen/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QFVIS,
|
|
|
|
[-I$(top_srcdir)/tools/qfvis/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QWAQ,
|
|
|
|
[],
|
2012-02-09 00:56:46 +00:00
|
|
|
[$(top_builddir)/libs/ruamoko/libQFruamoko.la $(top_builddir)/libs/gamecode/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(CARNE,
|
|
|
|
[],
|
2012-02-09 00:56:46 +00:00
|
|
|
[$(top_builddir)/libs/gib/libQFgib.la $(top_builddir)/libs/gamecode/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(PAK,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(WAD,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(WAV,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|