[build] Fix selective build of tools

A couple of things get built when they shouldn't (eg, vkgen) but this
gets the build system back to its pre-non-recursive-make
configurability.
This commit is contained in:
Bill Currie 2021-03-26 16:11:29 +09:00
parent c901fe74f9
commit 238e80c89b
14 changed files with 56 additions and 16 deletions

View file

@ -27,6 +27,9 @@ QWAQ_TARGETS=""
QW_DESKTOP_DATA="" QW_DESKTOP_DATA=""
NQ_DESKTOP_DATA="" NQ_DESKTOP_DATA=""
PAK_TARGETS
QFCC_TARGETS
CD_TARGETS="" CD_TARGETS=""
SND_TARGETS="" SND_TARGETS=""
VID_MODEL_TARGETS="" VID_MODEL_TARGETS=""
@ -211,42 +214,52 @@ if test "x$ENABLE_servers_qw" = xyes; then
fi fi
if test "x$ENABLE_tools_bsp2img" = xyes; then if test "x$ENABLE_tools_bsp2img" = xyes; then
BSP2IMG_TARGETS=bsp2img
QF_NEED(tools,[bsp2img]) QF_NEED(tools,[bsp2img])
QF_NEED(libs,[image util]) QF_NEED(libs,[image util])
fi fi
if test "x$ENABLE_tools_carne" = xyes; then if test "x$ENABLE_tools_carne" = xyes; then
CARNE_TARGETS=carne
QF_NEED(tools,[carne]) QF_NEED(tools,[carne])
QF_NEED(libs,[gib ruamoko gamecode util]) QF_NEED(libs,[gib ruamoko gamecode util])
fi fi
if test "x$ENABLE_tools_pak" = xyes; then if test "x$ENABLE_tools_pak" = xyes; then
PAK_TARGETS=pak
QF_NEED(tools,[pak]) QF_NEED(tools,[pak])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
if test "x$ENABLE_tools_qfbsp" = xyes; then if test "x$ENABLE_tools_qfbsp" = xyes; then
QFBSP_TARGETS=qfbsp
QF_NEED(tools,[qfbsp]) QF_NEED(tools,[qfbsp])
QF_NEED(libs,[models image util]) QF_NEED(libs,[models image util])
fi fi
if test "x$ENABLE_tools_qfcc" = xyes; then if test "x$ENABLE_tools_qfcc" = xyes; then
QFCC_TARGETS=qfcc qfprogs
QF_NEED(tools,[qfcc]) QF_NEED(tools,[qfcc])
QF_NEED(libs,[gamecode util]) QF_NEED(libs,[gamecode util])
fi fi
if test "x$ENABLE_tools_qflight" = xyes; then if test "x$ENABLE_tools_qflight" = xyes; then
QFLIGHT_TARGETS=qflight
QF_NEED(tools,[qflight]) QF_NEED(tools,[qflight])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
if test "x$ENABLE_tools_qflmp" = xyes; then if test "x$ENABLE_tools_qflmp" = xyes; then
QFLMP_TARGETS=qflmp
QF_NEED(tools,[qflmp]) QF_NEED(tools,[qflmp])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
if test "x$ENABLE_tools_qfmodelgen" = xyes; then if test "x$ENABLE_tools_qfmodelgen" = xyes; then
QFMODELGEN_TARGETS=qfmodelgen
QF_NEED(tools,[qfmodelgen]) QF_NEED(tools,[qfmodelgen])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
if test "x$ENABLE_tools_qfspritegen" = xyes; then if test "x$ENABLE_tools_qfspritegen" = xyes; then
QFSPRITEGEN_TARGETS=qfspritegen
QF_NEED(tools,[qfspritegen]) QF_NEED(tools,[qfspritegen])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
if test "x$ENABLE_tools_qfvis" = xyes; then if test "x$ENABLE_tools_qfvis" = xyes; then
QFVIS_TARGETS=qfvis
QF_NEED(tools,[qfvis]) QF_NEED(tools,[qfvis])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
@ -259,10 +272,12 @@ if test "x$ENABLE_tools_qwaq" = xyes; then
QF_NEED(libs,[ruamoko gamecode util]) QF_NEED(libs,[ruamoko gamecode util])
fi fi
if test "x$ENABLE_tools_wad" = xyes; then if test "x$ENABLE_tools_wad" = xyes; then
WAD_TARGETS=wad
QF_NEED(tools,[wad]) QF_NEED(tools,[wad])
QF_NEED(libs,[image util]) QF_NEED(libs,[image util])
fi fi
if test "x$ENABLE_tools_wav" = xyes; then if test "x$ENABLE_tools_wav" = xyes; then
WAV_TARGETS=wav
QF_NEED(tools,[wav]) QF_NEED(tools,[wav])
QF_NEED(libs,[util]) QF_NEED(libs,[util])
fi fi
@ -399,6 +414,19 @@ QF_SUBST(VID_REND_TARGETS)
QF_SUBST(VID_REND_NOINST_TARGETS) QF_SUBST(VID_REND_NOINST_TARGETS)
QF_SUBST(VID_TARGETS) QF_SUBST(VID_TARGETS)
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)
QF_DEPS(BSP2IMG, QF_DEPS(BSP2IMG,
[], [],
[$(top_builddir)/libs/image/libQFimage.la [$(top_builddir)/libs/image/libQFimage.la

View file

@ -2,7 +2,8 @@ BSP2IMG_LIBS=@BSP2IMG_LIBS@
BSP2IMG_DEPS=@BSP2IMG_DEPS@ BSP2IMG_DEPS=@BSP2IMG_DEPS@
BSP2IMG_INCS=@BSP2IMG_INCS@ BSP2IMG_INCS=@BSP2IMG_INCS@
bin_PROGRAMS += bsp2img EXTRA_PROGRAMS += bsp2img
bin_PROGRAMS += @BSP2IMG_TARGETS@
bsp2img_SOURCES= tools/bsp2img/bsp2img.c bsp2img_SOURCES= tools/bsp2img/bsp2img.c
bsp2img_LDADD= $(BSP2IMG_LIBS) bsp2img_LDADD= $(BSP2IMG_LIBS)

View file

@ -1,7 +1,8 @@
CARNE_LIBS=@CARNE_LIBS@ CARNE_LIBS=@CARNE_LIBS@
CARNE_DEPS=@CARNE_DEPS@ CARNE_DEPS=@CARNE_DEPS@
noinst_PROGRAMS += carne EXTRA_PROGRAMS += carne
noinst_PROGRAMS += @CARNE_TARGETS@
carne_SOURCES= tools/carne/main.c carne_SOURCES= tools/carne/main.c
carne_LDADD= $(CARNE_LIBS) carne_LDADD= $(CARNE_LIBS)

View file

@ -1,19 +1,19 @@
#!/bin/sh -x #!/bin/sh -x
set -e set -e
mkdir -p native x86_64-w64-mingw32 mkdir -p native i686-w64-mingw32.static
cd native cd native
../../configure \ ../../configure \
--disable-shared \ --disable-shared \
--without-clients \ --without-clients \
--without-servers \ --without-servers \
--with-tools=qfcc,pak --with-tools=qfcc,pak
cd ../x86_64-w64-mingw32 cd ../i686-w64-mingw32.static
export MINGW=/opt/mxe export MINGW=/opt/mxe
export MINGW_USR=$MINGW/usr/x86_64-w64-mingw32 export MINGW_USR=$MINGW/usr/i686-w64-mingw32.static
export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig export PKG_CONFIG_LIBDIR=$MINGW_USR/lib/pkgconfig
export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig export PKG_CONFIG_PATH=$MINGW_USR/local/lib/pkgconfig
export PATH=$MINGW/usr/bin:$PATH export PATH=$MINGW/usr/bin:$PATH
../../configure \ ../../configure \
--host=x86_64-w64-mingw32 \ --host=i686-w64-mingw32.static \
--disable-shared \ --disable-shared \
$* $*

View file

@ -2,7 +2,8 @@ PAK_LIBS=@PAK_LIBS@
PAK_DEPS=@PAK_DEPS@ PAK_DEPS=@PAK_DEPS@
PAK_INCS=@PAK_INCS@ PAK_INCS=@PAK_INCS@
bin_PROGRAMS += pak EXTRA_PROGRAMS += pak
bin_PROGRAMS += @PAK_TARGETS@
bin_SCRIPTS += tools/pak/zpak bin_SCRIPTS += tools/pak/zpak
man_MANS += tools/pak/pak.1 tools/pak/zpak.1 man_MANS += tools/pak/pak.1 tools/pak/zpak.1

View file

@ -2,7 +2,8 @@ QFBSP_LIBS=@QFBSP_LIBS@
QFBSP_DEPS=@QFBSP_DEPS@ QFBSP_DEPS=@QFBSP_DEPS@
QFBSP_INCS=@QFBSP_INCS@ QFBSP_INCS=@QFBSP_INCS@
bin_PROGRAMS += qfbsp EXTRA_PROGRAMS += qfbsp
bin_PROGRAMS += @QFBSP_TARGETS@
qfbsp_SOURCES= \ qfbsp_SOURCES= \
tools/qfbsp/source/brush.c \ tools/qfbsp/source/brush.c \

View file

@ -2,7 +2,8 @@ QFCC_LIBS=@QFCC_LIBS@
QFCC_DEPS=@QFCC_DEPS@ QFCC_DEPS=@QFCC_DEPS@
QFCC_INCS=@QFCC_INCS@ QFCC_INCS=@QFCC_INCS@
bin_PROGRAMS += qfcc qfprogs EXTRA_PROGRAMS += qfcc qfprogs
bin_PROGRAMS += @QFCC_TARGETS@
bin_SCRIPTS += tools/qfcc/source/qfpreqcc bin_SCRIPTS += tools/qfcc/source/qfpreqcc
qfcc_SOURCES = \ qfcc_SOURCES = \

View file

@ -2,7 +2,8 @@ QFLIGHT_LIBS=@QFLIGHT_LIBS@
QFLIGHT_DEPS=@QFLIGHT_DEPS@ QFLIGHT_DEPS=@QFLIGHT_DEPS@
QFLIGHT_INCS=@QFLIGHT_INCS@ QFLIGHT_INCS=@QFLIGHT_INCS@
bin_PROGRAMS += qflight EXTRA_PROGRAMS += qflight
bin_PROGRAMS += @QFLIGHT_TARGETS@
qflight_SOURCES=\ qflight_SOURCES=\
tools/qflight/source/entities.c \ tools/qflight/source/entities.c \

View file

@ -2,7 +2,8 @@ QFLMP_LIBS=@QFLMP_LIBS@
QFLMP_DEPS=@QFLMP_DEPS@ QFLMP_DEPS=@QFLMP_DEPS@
QFLMP_INCS=@QFLMP_INCS@ QFLMP_INCS=@QFLMP_INCS@
bin_PROGRAMS += qflmp EXTRA_PROGRAMS += qflmp
bin_PROGRAMS += @QFLMP_TARGETS@
#mans=qflmp.1 #mans=qflmp.1
man_MANS += $(mans) man_MANS += $(mans)

View file

@ -2,7 +2,8 @@ QFMODELGEN_LIBS=@QFMODELGEN_LIBS@
QFMODELGEN_DEPS=@QFMODELGEN_DEPS@ QFMODELGEN_DEPS=@QFMODELGEN_DEPS@
QFMODELGEN_INCS=@QFMODELGEN_INCS@ QFMODELGEN_INCS=@QFMODELGEN_INCS@
bin_PROGRAMS += qfmodelgen EXTRA_PROGRAMS += qfmodelgen
bin_PROGRAMS += @QFMODELGEN_TARGETS@
qfmodelgen_SOURCES = \ qfmodelgen_SOURCES = \
tools/qfmodelgen/source/lbmlib.c \ tools/qfmodelgen/source/lbmlib.c \

View file

@ -2,7 +2,8 @@ QFSPRITEGEN_LIBS=@QFSPRITEGEN_LIBS@
QFSPRITEGEN_DEPS=@QFSPRITEGEN_DEPS@ QFSPRITEGEN_DEPS=@QFSPRITEGEN_DEPS@
QFSPRITEGEN_INCS=@QFSPRITEGEN_INCS@ QFSPRITEGEN_INCS=@QFSPRITEGEN_INCS@
bin_PROGRAMS += qfspritegen EXTRA_PROGRAMS += qfspritegen
bin_PROGRAMS += @QFSPRITEGEN_TARGETS@
qfspritegen_SOURCES= tools/qfspritegen/spritegen.c qfspritegen_SOURCES= tools/qfspritegen/spritegen.c

View file

@ -2,7 +2,8 @@ QFVIS_LIBS=@QFVIS_LIBS@
QFVIS_DEPS=@QFVIS_DEPS@ QFVIS_DEPS=@QFVIS_DEPS@
QFVIS_INCS=@QFVIS_INCS@ QFVIS_INCS=@QFVIS_INCS@
bin_PROGRAMS += qfvis EXTRA_PROGRAMS += qfvis
bin_PROGRAMS += @QFVIS_TARGETS@
qfvis_SOURCES = \ qfvis_SOURCES = \
tools/qfvis/source/base-vis.c \ tools/qfvis/source/base-vis.c \

View file

@ -2,7 +2,8 @@ WAD_LIBS=@WAD_LIBS@
WAD_DEPS=@WAD_DEPS@ WAD_DEPS=@WAD_DEPS@
WAD_INCS=@WAD_INCS@ WAD_INCS=@WAD_INCS@
bin_PROGRAMS += wad EXTRA_PROGRAMS += wad
bin_PROGRAMS += @WAD_TARGETS@
man_MANS += tools/wad/wad.1 man_MANS += tools/wad/wad.1

View file

@ -2,7 +2,8 @@ WAV_LIBS=@WAV_LIBS@
WAV_DEPS=@WAV_DEPS@ WAV_DEPS=@WAV_DEPS@
WAV_INCS=@WAV_INCS@ WAV_INCS=@WAV_INCS@
bin_PROGRAMS += qfwavinfo EXTRA_PROGRAMS += qfwavinfo
bin_PROGRAMS += @WAV_TARGETS@
#man_MANS += tools/wav/qfwavinfo.1 #man_MANS += tools/wav/qfwavinfo.1