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>:],
|
2013-01-24 01:31:57 +00:00
|
|
|
[fbdev,sdl,svga,win,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:],
|
2012-06-30 11:20:15 +00:00
|
|
|
[bsp2img,carne,gsc,pak,qfbsp,qfcc,qflight,qflmp,qfmodelgen,qfspritegen,qfvis,qwaq,wad,wav],dummy
|
2010-08-19 06:01:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
unset CL_TARGETS
|
|
|
|
HW_TARGETS=""
|
|
|
|
QTV_TARGETS=""
|
|
|
|
QW_TARGETS=""
|
|
|
|
NQ_TARGETS=""
|
2012-07-14 00:06:04 +00:00
|
|
|
QWAQ_TARGETS=""
|
2010-08-19 06:01:43 +00:00
|
|
|
QW_DESKTOP_DATA=""
|
|
|
|
NQ_DESKTOP_DATA=""
|
|
|
|
|
2021-03-26 08:15:22 +00:00
|
|
|
BSP2IMG_TARGETS=""
|
|
|
|
CARNE_TARGETS=""
|
|
|
|
PAK_TARGETS=""
|
|
|
|
QFBSP_TARGETS=""
|
|
|
|
QFCC_TARGETS=""
|
|
|
|
QFLIGHT_TARGETS=""
|
|
|
|
QFLMP_TARGETS=""
|
|
|
|
QFMODELGEN_TARGETS=""
|
|
|
|
QFSPRITEGEN_TARGETS=""
|
|
|
|
QFVIS_TARGETS=""
|
|
|
|
WAD_TARGETS=""
|
|
|
|
WAV_TARGETS=""
|
2021-03-26 07:11:29 +00:00
|
|
|
|
2010-08-19 06:01:43 +00:00
|
|
|
CD_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"
|
2020-06-21 14:15:17 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libs/video/targets/libQFfbdev.la"
|
2012-02-14 08:28:09 +00:00
|
|
|
QF_NEED(vid_render, [sw])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [sw])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(models, [sw])
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
2012-04-27 05:40:06 +00:00
|
|
|
QF_NEED(iqm, [sw])
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib audio image models video console net qw client])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "x$HAVE_X" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_glx" = xyes; then
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common x11])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
2011-12-23 03:19:13 +00:00
|
|
|
if test "x$ENABLE_clients_glslx" = xyes; then
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common x11])
|
2011-12-23 03:19:13 +00:00
|
|
|
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)"
|
2020-06-21 14:15:17 +00:00
|
|
|
QWAQ_TARGETS="$QWAQ_TARGETS ruamoko/qwaq/qwaq-x11\$(EXEEXT)"
|
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA desktop/quakeforge-qw-x11.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA desktop/quakeforge-nq-x11.desktop"
|
2010-08-19 06:01:43 +00:00
|
|
|
CL_TARGETS="$CL_TARGETS X11"
|
2020-06-21 14:15:17 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libs/video/targets/libQFx11.la"
|
2019-07-08 16:03:26 +00:00
|
|
|
if test "$HAVE_VULKAN" = "yes"; then
|
2021-01-19 04:53:08 +00:00
|
|
|
QF_NEED(vid_render, [vulkan])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [vulkan])
|
2021-01-19 04:53:08 +00:00
|
|
|
QF_NEED(models, [vulkan])
|
|
|
|
QF_NEED(alias, [vulkan])
|
|
|
|
QF_NEED(brush, [vulkan])
|
|
|
|
QF_NEED(iqm, [vulkan])
|
|
|
|
QF_NEED(sprite, [vulkan])
|
2019-07-08 16:03:26 +00:00
|
|
|
fi
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(vid_render, [sw sw32 gl glsl])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [sw sw32 gl glsl])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(models, [sw gl glsl])
|
|
|
|
QF_NEED(alias, [sw gl glsl])
|
|
|
|
QF_NEED(brush, [sw gl glsl])
|
2012-04-27 05:40:06 +00:00
|
|
|
QF_NEED(iqm, [sw gl glsl])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(sprite, [sw gl glsl])
|
2012-02-10 04:29:45 +00:00
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common x11])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib audio image models video console net qw client])
|
2010-08-19 06:01:43 +00:00
|
|
|
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)"
|
2020-06-21 14:15:17 +00:00
|
|
|
QW_DESKTOP_DATA="$QW_DESKTOP_DATA desktop/quakeforge-qw-sdl.desktop"
|
|
|
|
NQ_DESKTOP_DATA="$NQ_DESKTOP_DATA desktop/quakeforge-nq-sdl.desktop"
|
2010-08-19 06:01:43 +00:00
|
|
|
CL_TARGETS="$CL_TARGETS SDL"
|
2020-06-21 14:15:17 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libs/video/targets/libQFsdl.la"
|
2019-07-08 16:03:26 +00:00
|
|
|
if test "$HAVE_VULKAN" = "yes"; then
|
2021-01-19 04:53:08 +00:00
|
|
|
QF_NEED(vid_render, [vulkan])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [vulkan])
|
2021-01-19 04:53:08 +00:00
|
|
|
QF_NEED(alias, [vulkan])
|
|
|
|
QF_NEED(brush, [vulkan])
|
|
|
|
QF_NEED(iqm, [vulkan])
|
|
|
|
QF_NEED(sprite, [vulkan])
|
2019-07-08 16:03:26 +00:00
|
|
|
fi
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(vid_render, [sw sw32 gl glsl])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [sw sw32 gl glsl])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(models, [sw gl glsl])
|
|
|
|
QF_NEED(alias, [sw gl glsl])
|
|
|
|
QF_NEED(brush, [sw gl glsl])
|
2012-04-27 05:40:06 +00:00
|
|
|
QF_NEED(iqm, [sw gl glsl])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(sprite, [sw gl glsl])
|
2012-02-10 04:29:45 +00:00
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common sdl])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(qw, [client common sdl])
|
|
|
|
QF_NEED(nq, [client common sdl])
|
|
|
|
QF_NEED(console, [client])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib audio image models video console net qw 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"
|
2020-06-21 14:15:17 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libs/video/targets/libQFsvga.la"
|
2012-02-14 08:28:09 +00:00
|
|
|
QF_NEED(vid_render, [sw])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_NEED(render, [sw])
|
2012-02-14 12:25:19 +00:00
|
|
|
QF_NEED(models, [sw])
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(alias, [sw])
|
|
|
|
QF_NEED(brush, [sw])
|
2012-04-27 05:40:06 +00:00
|
|
|
QF_NEED(iqm, [sw])
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_NEED(sprite, [sw])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
2012-02-17 07:13:56 +00:00
|
|
|
QF_NEED(vid, [common svga])
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib audio image models video console net qw client])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
2013-01-24 01:31:57 +00:00
|
|
|
if test "x$mingw" = xyes; then
|
|
|
|
if test "x$ENABLE_clients_win" = xyes; then
|
|
|
|
QW_TARGETS="$QW_TARGETS qw-client-win\$(EXEEXT)"
|
|
|
|
NQ_TARGETS="$NQ_TARGETS nq-win\$(EXEEXT)"
|
|
|
|
CL_TARGETS="$CL_TARGETS WIN"
|
2021-03-25 13:42:16 +00:00
|
|
|
VID_TARGETS="$VID_TARGETS libs/video/targets/libQFwin.la"
|
2013-01-24 01:31:57 +00:00
|
|
|
QF_NEED(vid_render, [sw sw32 gl glsl])
|
|
|
|
QF_NEED(models, [sw gl glsl])
|
|
|
|
QF_NEED(alias, [sw gl glsl])
|
|
|
|
QF_NEED(brush, [sw gl glsl])
|
|
|
|
QF_NEED(iqm, [sw gl glsl])
|
|
|
|
QF_NEED(sprite, [sw gl glsl])
|
|
|
|
if test "x$ASM_ARCH" = "xyes"; then
|
|
|
|
QF_NEED(swrend, [asm])
|
|
|
|
fi
|
|
|
|
QF_NEED(vid, [common win])
|
|
|
|
QF_NEED(qw, [client common])
|
|
|
|
QF_NEED(nq, [client common])
|
|
|
|
QF_NEED(console, [client])
|
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib audio image models video console net qw client])
|
|
|
|
fi
|
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
|
|
|
|
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])
|
2012-02-12 10:29:31 +00:00
|
|
|
QF_NEED(top, [nq])
|
2012-11-27 03:47:40 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib image models console net])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_servers_qtv" = xyes; then
|
2020-06-21 14:15:17 +00:00
|
|
|
QTV_TARGETS="qtv-server\$(EXEEXT) $QTV_TARGETS"
|
|
|
|
SV_TARGETS="$SV_TARGETS qtv-server"
|
2010-08-19 06:01:43 +00:00
|
|
|
# QF_NEED(qtv, [common server])
|
|
|
|
QF_NEED(console, [server])
|
2012-02-12 10:29:31 +00:00
|
|
|
QF_NEED(top, [qtv])
|
2012-11-27 03:47:40 +00:00
|
|
|
QF_NEED(libs,[util models console net qw])
|
2010-08-19 06:01:43 +00:00
|
|
|
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"
|
2012-02-12 10:29:31 +00:00
|
|
|
QF_NEED(top, [hw qw])
|
2012-11-27 03:47:40 +00:00
|
|
|
QF_NEED(libs,[util console net qw])
|
2010-08-19 06:01:43 +00:00
|
|
|
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])
|
2012-02-12 10:29:31 +00:00
|
|
|
QF_NEED(top, [qw])
|
2012-11-27 03:47:40 +00:00
|
|
|
QF_NEED(libs,[util gamecode ruamoko gib models console net qw])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$ENABLE_tools_bsp2img" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
BSP2IMG_TARGETS="bsp2img\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[bsp2img])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[image util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_carne" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
CARNE_TARGETS="carne\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[carne])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[gib ruamoko gamecode util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_pak" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
PAK_TARGETS="pak\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[pak])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfbsp" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
QFBSP_TARGETS="qfbsp\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfbsp])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[models image util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qfcc" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
QFCC_TARGETS="qfcc qfprogs\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfcc])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[gamecode util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qflight" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
QFLIGHT_TARGETS="qflight\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qflight])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
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
|
2021-03-27 11:09:37 +00:00
|
|
|
QFLMP_TARGETS="qflmp\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qflmp])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
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
|
2021-03-27 11:09:37 +00:00
|
|
|
QFMODELGEN_TARGETS="qfmodelgen\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfmodelgen])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
2012-06-30 11:20:15 +00:00
|
|
|
if test "x$ENABLE_tools_qfspritegen" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
QFSPRITEGEN_TARGETS="qfspritegen\$(EXEEXT)"
|
2012-06-30 11:20:15 +00:00
|
|
|
QF_NEED(tools,[qfspritegen])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
2012-06-30 11:20:15 +00:00
|
|
|
fi
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$ENABLE_tools_qfvis" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
QFVIS_TARGETS="qfvis\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[qfvis])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_qwaq" = xyes; then
|
2020-02-26 13:10:59 +00:00
|
|
|
if test "x$HAVE_PANEL" = xyes -a "x$HAVE_PTHREAD" = xyes; then
|
2020-06-21 14:15:17 +00:00
|
|
|
QWAQ_TARGETS="$QWAQ_TARGETS ruamoko/qwaq/qwaq-curses\$(EXEEXT)"
|
2020-02-26 13:10:59 +00:00
|
|
|
fi
|
2020-02-29 15:55:15 +00:00
|
|
|
QF_NEED(tools,[qfcc])
|
|
|
|
QF_NEED(ruamoko,[qwaq])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[ruamoko gamecode util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_wad" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
WAD_TARGETS="wad\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[wad])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[image util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
if test "x$ENABLE_tools_wav" = xyes; then
|
2021-03-27 11:09:37 +00:00
|
|
|
WAV_TARGETS="qfwavinfo\$(EXEEXT)"
|
2012-02-09 16:49:45 +00:00
|
|
|
QF_NEED(tools,[wav])
|
2012-08-20 05:12:20 +00:00
|
|
|
QF_NEED(libs,[util])
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
2012-02-12 10:29:31 +00:00
|
|
|
QF_NEED(top, [libs hw nq qtv qw])
|
|
|
|
|
2021-03-26 06:26:13 +00:00
|
|
|
QF_PROCESS_NEED_LIST(tools,[bsp2img carne pak qfbsp qfcc qflight qflmp qfmodelgen qfspritegen qfvis wad wav])
|
2020-02-29 15:55:15 +00:00
|
|
|
QF_PROCESS_NEED_FUNC(tools,[bsp2img carne pak qfbsp qfcc qflight qflmp qfmodelgen qfspritegen qfvis wad wav], QF_NEED(top,tools))
|
2012-08-20 05:12:20 +00:00
|
|
|
|
2021-03-26 06:26:13 +00:00
|
|
|
QF_PROCESS_NEED_LIST(libs,[util gamecode ruamoko gib audio image models video console net qw client])
|
2021-03-26 06:17:46 +00:00
|
|
|
|
2021-03-26 06:26:13 +00:00
|
|
|
QF_PROCESS_NEED_LIST(ruamoko,[qwaq])
|
2021-03-26 06:17:46 +00:00
|
|
|
|
2012-02-12 10:29:31 +00:00
|
|
|
if test "$ENABLE_tools_qfcc" = "yes" -a "$ENABLE_tools_pak" = "yes"; then
|
|
|
|
QF_NEED(top, [ruamoko])
|
2020-06-21 14:15:17 +00:00
|
|
|
qfac_qfcc_include_qf="\$(qfcc_include_qf)"
|
2012-02-12 10:29:31 +00:00
|
|
|
fi
|
2020-06-21 14:15:17 +00:00
|
|
|
QF_SUBST(qfac_qfcc_include_qf)
|
2020-03-03 13:22:53 +00:00
|
|
|
|
|
|
|
if test x"${top_need_libs}" = xyes; then
|
2020-06-21 14:15:17 +00:00
|
|
|
qfac_include_qf="\$(include_qf)"
|
|
|
|
qfac_include_qf_gl="\$(include_qf_gl)"
|
|
|
|
qfac_include_qf_glsl="\$(include_qf_glsl)"
|
|
|
|
qfac_include_qf_math="\$(include_qf_math)"
|
|
|
|
qfac_include_qf_plugin="\$(include_qf_plugin)"
|
2021-03-29 08:35:30 +00:00
|
|
|
qfac_include_qf_simd="\$(include_qf_simd)"
|
2020-06-25 05:03:52 +00:00
|
|
|
qfac_include_qf_vulkan="\$(include_qf_vulkan)"
|
2020-03-03 13:22:53 +00:00
|
|
|
fi
|
2020-06-21 14:15:17 +00:00
|
|
|
QF_SUBST(qfac_include_qf)
|
|
|
|
QF_SUBST(qfac_include_qf_gl)
|
|
|
|
QF_SUBST(qfac_include_qf_glsl)
|
|
|
|
QF_SUBST(qfac_include_qf_math)
|
|
|
|
QF_SUBST(qfac_include_qf_plugin)
|
2021-03-29 08:35:30 +00:00
|
|
|
QF_SUBST(qfac_include_qf_simd)
|
2020-06-25 05:03:52 +00:00
|
|
|
QF_SUBST(qfac_include_qf_vulkan)
|
2020-03-03 13:22:53 +00:00
|
|
|
|
2012-02-13 07:08:03 +00:00
|
|
|
progs_gz=
|
|
|
|
if test "$HAVE_ZLIB" = "yes"; then
|
|
|
|
progs_gz=".gz"
|
|
|
|
fi
|
|
|
|
QF_SUBST(progs_gz)
|
2012-02-09 16:49:45 +00:00
|
|
|
|
2021-03-26 06:26:13 +00:00
|
|
|
QF_PROCESS_NEED_LIST(top, [libs hw nq qtv qw tools ruamoko])
|
2021-03-26 06:17:46 +00:00
|
|
|
|
2012-02-10 04:29:45 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(swrend, [asm])
|
2021-03-03 04:04:26 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(render, [gl glsl sw sw32 vulkan], [libs/video/renderer])
|
2021-03-26 06:26:13 +00:00
|
|
|
QF_PROCESS_NEED_LIST(vid_render, [gl glsl sw sw32 vulkan])
|
2021-01-19 04:53:08 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(models, [gl glsl sw vulkan], [libs/models])
|
|
|
|
QF_PROCESS_NEED_LIBS(alias, [gl glsl sw vulkan], [libs/models/alias])
|
|
|
|
QF_PROCESS_NEED_LIBS(brush, [gl glsl sw vulkan], [libs/models/brush])
|
|
|
|
QF_PROCESS_NEED_LIBS(iqm, [gl glsl sw vulkan], [libs/models/iqm])
|
|
|
|
QF_PROCESS_NEED_LIBS(sprite, [gl glsl sw vulkan], [libs/models/sprite])
|
2010-08-19 06:01:43 +00:00
|
|
|
|
2021-03-25 13:42:16 +00:00
|
|
|
QF_PROCESS_NEED_LIBS(vid, [common sdl svga win x11], [libs/video/targets])
|
|
|
|
QF_PROCESS_NEED_LIBS(qw, [client common sdl win server], [qw/source], a)
|
|
|
|
QF_PROCESS_NEED_LIBS(nq, [client common sdl win server], [nq/source], a)
|
2010-08-19 06:01:43 +00:00
|
|
|
|
|
|
|
if test -n "$CL_TARGETS"; then
|
2020-06-21 14:15:17 +00:00
|
|
|
CD_TARGETS="libs/audio/libQFcd.la"
|
|
|
|
SND_TARGETS="libs/audio/libQFsound.la"
|
2011-08-02 02:24:51 +00:00
|
|
|
AUDIO_TARGETS="testsound\$(EXEEXT)"
|
2020-06-21 14:15:17 +00:00
|
|
|
JOY_TARGETS="libs/video/targets/libQFjs.la"
|
2010-08-19 06:01:43 +00:00
|
|
|
else
|
|
|
|
unset CDTYPE
|
2012-02-12 10:29:31 +00:00
|
|
|
unset SOUND_TYPES
|
2010-08-19 06:01:43 +00:00
|
|
|
CD_TARGETS=""
|
|
|
|
JOY_TARGETS=""
|
|
|
|
SND_TARGETS=""
|
2011-07-30 06:03:19 +00:00
|
|
|
AUDIO_TARGETS=""
|
2010-08-19 06:01:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
2012-02-13 06:49:55 +00:00
|
|
|
QF_SUBST(PREFER_PIC)
|
|
|
|
QF_SUBST(PREFER_NON_PIC)
|
|
|
|
QF_SUBST(STATIC)
|
2010-08-19 06:01:43 +00:00
|
|
|
|
|
|
|
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
|
2020-06-25 05:03:52 +00:00
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(vid_render, [sw sw32 glsl gl vulkan], [libs/video/renderer])
|
2020-06-21 14:15:17 +00:00
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(console, [server], [libs/console], [server])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(console, [client], [libs/console], [client])
|
2012-02-12 02:37:25 +00:00
|
|
|
|
2020-06-21 14:15:17 +00:00
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(snd_output, [sdl mme sgi sun win dx oss alsa], [libs/audio/targets])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(snd_render, [jack default], [libs/audio/renderer])
|
|
|
|
QF_PROCESS_NEED_STATIC_PLUGINS(cd, [xmms sdl sgi win linux file], [libs/audio])
|
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
|
2020-06-25 05:03:52 +00:00
|
|
|
QF_PROCESS_NEED_PLUGINS(vid_render, [sw sw32 glsl gl vulkan], [libs/video/renderer])
|
2020-06-21 14:15:17 +00:00
|
|
|
QF_PROCESS_NEED_PLUGINS(console, [server], [libs/console], [server])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(console, [client], [libs/console], [client])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(snd_output, [sdl mme sgi sun win dx oss alsa], [libs/audio/targets])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(snd_render, [jack default], [libs/audio/renderer])
|
|
|
|
QF_PROCESS_NEED_PLUGINS(cd, [xmms sdl sgi win linux file], [libs/audio])
|
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
|
|
|
|
|
2012-02-13 06:49:55 +00:00
|
|
|
QF_SUBST(HW_TARGETS)
|
|
|
|
QF_SUBST(NQ_TARGETS)
|
|
|
|
QF_SUBST(NQ_DESKTOP_DATA)
|
|
|
|
QF_SUBST(QTV_TARGETS)
|
2012-07-14 00:06:04 +00:00
|
|
|
QF_SUBST(QWAQ_TARGETS)
|
2012-02-13 06:49:55 +00:00
|
|
|
QF_SUBST(QW_TARGETS)
|
|
|
|
QF_SUBST(QW_DESKTOP_DATA)
|
|
|
|
QF_SUBST(CD_TARGETS)
|
|
|
|
QF_SUBST(JOY_TARGETS)
|
|
|
|
QF_SUBST(SND_TARGETS)
|
|
|
|
QF_SUBST(AUDIO_TARGETS)
|
|
|
|
QF_SUBST(VID_MODEL_TARGETS)
|
|
|
|
QF_SUBST(VID_REND_TARGETS)
|
|
|
|
QF_SUBST(VID_REND_NOINST_TARGETS)
|
|
|
|
QF_SUBST(VID_TARGETS)
|
2010-08-19 06:01:43 +00:00
|
|
|
|
2021-03-26 07:11:29 +00:00
|
|
|
QF_SUBST(BSP2IMG_TARGETS)
|
|
|
|
QF_SUBST(CARNE_TARGETS)
|
|
|
|
QF_SUBST(PAK_TARGETS)
|
|
|
|
QF_SUBST(QFBSP_TARGETS)
|
|
|
|
QF_SUBST(QFCC_TARGETS)
|
|
|
|
QF_SUBST(QFLIGHT_TARGETS)
|
|
|
|
QF_SUBST(QFLMP_TARGETS)
|
|
|
|
QF_SUBST(QFMODELGEN_TARGETS)
|
|
|
|
QF_SUBST(QFSPRITEGEN_TARGETS)
|
|
|
|
QF_SUBST(QFVIS_TARGETS)
|
|
|
|
QF_SUBST(WAD_TARGETS)
|
|
|
|
QF_SUBST(WAV_TARGETS)
|
|
|
|
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_DEPS(BSP2IMG,
|
|
|
|
[],
|
2012-02-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/image/libQFimage.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QFBSP,
|
|
|
|
[-I$(top_srcdir)/tools/qfbsp/include],
|
2012-02-12 11:14:26 +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-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/gamecode/libQFgamecode.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2012-11-22 06:40:16 +00:00
|
|
|
QF_DEPS(QFCC_TEST,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/ruamoko/libQFruamoko.la
|
2020-02-25 16:01:47 +00:00
|
|
|
$(top_builddir)/libs/gamecode/libQFgamecode.la
|
2012-11-22 06:40:16 +00:00
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_DEPS(QFLIGHT,
|
|
|
|
[-I$(top_srcdir)/tools/qflight/include],
|
2012-12-26 07:24:59 +00:00
|
|
|
[$(top_builddir)/libs/gamecode/libQFgamecode.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2011-01-09 09:33:51 +00:00
|
|
|
QF_DEPS(QFLMP,
|
|
|
|
[],
|
2012-02-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/image/libQFimage.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2011-01-09 09:33:51 +00:00
|
|
|
[$(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)],
|
|
|
|
)
|
2012-06-30 11:20:15 +00:00
|
|
|
QF_DEPS(QFSPRITEGEN,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/image/libQFimage.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
2010-08-19 06:01:43 +00:00
|
|
|
QF_DEPS(QFVIS,
|
|
|
|
[-I$(top_srcdir)/tools/qfvis/include],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(QWAQ,
|
2020-06-21 14:15:17 +00:00
|
|
|
[-I$(top_srcdir)/ruamoko/qwaq],
|
2012-02-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/ruamoko/libQFruamoko.la
|
2020-02-25 16:01:47 +00:00
|
|
|
$(top_builddir)/libs/gamecode/libQFgamecode.la
|
2012-02-12 11:14:26 +00:00
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(CARNE,
|
|
|
|
[],
|
2012-02-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/gib/libQFgib.la
|
2012-02-13 06:05:31 +00:00
|
|
|
$(top_builddir)/libs/ruamoko/libQFruamoko.la
|
2020-02-25 16:01:47 +00:00
|
|
|
$(top_builddir)/libs/gamecode/libQFgamecode.la
|
2012-02-12 11:14:26 +00:00
|
|
|
$(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,
|
|
|
|
[],
|
2012-02-12 11:14:26 +00:00
|
|
|
[$(top_builddir)/libs/image/libQFimage.la
|
|
|
|
$(top_builddir)/libs/util/libQFutil.la],
|
2010-08-19 06:01:43 +00:00
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|
|
|
|
QF_DEPS(WAV,
|
|
|
|
[],
|
|
|
|
[$(top_builddir)/libs/util/libQFutil.la],
|
|
|
|
[$(WIN32_LIBS)],
|
|
|
|
)
|