Fix missing library references when linking.

This commit is contained in:
Bill Currie 2012-02-05 14:25:22 +09:00
parent 3bd75cefd8
commit 201532ea7e
5 changed files with 29 additions and 10 deletions

View file

@ -548,7 +548,7 @@ QF_DEPS(BSP2IMG,
)
QF_DEPS(QFBSP,
[-I$(top_srcdir)/tools/qfbsp/include],
[$(top_builddir)/libs/util/libQFutil.la $(top_builddir)/libs/models/libQFmodels.la],
[$(top_builddir)/libs/models/libQFmodels.la $(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la],
[$(WIN32_LIBS)],
)
QF_DEPS(QFCC,

View file

@ -43,12 +43,22 @@ cd_xmms_la_LIBADD= $(XMMS_LIBS) $(top_builddir)/libs/util/libQFutil.la
cd_xmms_la_CFLAGS= $(XMMS_CFLAGS)
cd_xmms_la_SOURCES= cd_xmms.c
sound_libs= \
@SND_PLUGIN_STATIC_LIBS@ \
@SND_REND_STATIC_LIBS@ \
$(top_builddir)/libs/gamecode/engine/libQFgamecode.la \
$(top_builddir)/libs/util/libQFutil.la
cd_libs= \
@CD_PLUGIN_STATIC_LIBS@ \
$(top_builddir)/libs/util/libQFutil.la
libQFsound_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -rpath $(libdir)
libQFsound_la_LIBADD= @SND_PLUGIN_STATIC_LIBS@ @SND_REND_STATIC_LIBS@ $(top_builddir)/libs/util/libQFutil.la $(top_builddir)/libs/gamecode/engine/libQFgamecode.la
libQFsound_la_LIBADD= $(sound_libs)
libQFsound_la_SOURCES= snd.c snd_progs.c
libQFsound_la_DEPENDENCIES= @SND_PLUGIN_STATIC_LIBS@ @SND_REND_STATIC_LIBS@
libQFsound_la_DEPENDENCIES= $(sound_libs)
libQFcd_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -rpath $(libdir)
libQFcd_la_LIBADD= @CD_PLUGIN_STATIC_LIBS@ $(top_builddir)/libs/util/libQFutil.la
libQFcd_la_LIBADD= $(cd_libs)
libQFcd_la_SOURCES= cd.c
libQFcd_la_DEPENDENCIES= @CD_PLUGIN_STATIC_LIBS@
libQFcd_la_DEPENDENCIES= $(cd_libs)

View file

@ -7,5 +7,5 @@ noinst_PROGRAMS= @AUDIO_TARGETS@
EXTRA_PROGRAMS= testsound
testsound_SOURCES= testsound.c
testsound_LDADD= $(top_builddir)/libs/audio/libQFsound.la $(top_builddir)/libs/util/libQFutil.la
testsound_LDADD= $(top_builddir)/libs/audio/libQFsound.la $(top_builddir)/libs/gamecode/engine/libQFgamecode.la $(top_builddir)/libs/util/libQFutil.la
testsound_DEPENDENCIES= $(top_builddir)/libs/audio/libQFsound.la $(top_builddir)/libs/util/libQFutil.la

View file

@ -9,7 +9,9 @@ EXTRA_LTLIBRARIES= libQFmodels_gl.la libQFmodels_glsl.la libQFmodels_sw.la
models_sources = clip_hull.c model.c portal.c skin.c trace.c winding.c
models_libs = $(top_builddir)/libs/image/libQFimage.la $(top_builddir)/libs/util/libQFutil.la
models_libs = \
$(top_builddir)/libs/image/libQFimage.la \
$(top_builddir)/libs/util/libQFutil.la
libQFmodels_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -no-undefined
libQFmodels_la_LIBADD= brush/libbrush.la $(models_libs)
@ -17,21 +19,27 @@ libQFmodels_la_SOURCES= $(models_sources) null_model.c
libQFmodels_la_DEPENDENCIES= brush/libbrush.la $(models_libs)
gl_LIBS= \
alias/libalias_gl.la brush/libbrush_gl.la sprite/libsprite_gl.la
alias/libalias_gl.la \
brush/libbrush_gl.la \
sprite/libsprite_gl.la
libQFmodels_gl_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -rpath $(libdir)
libQFmodels_gl_la_LIBADD= $(gl_LIBS) $(models_libs)
libQFmodels_gl_la_SOURCES= $(models_sources) gl_model_fullbright.c gl_skin.c
libQFmodels_gl_la_DEPENDENCIES= $(gl_LIBS) $(models_libs)
glsl_LIBS= \
alias/libalias_glsl.la brush/libbrush_glsl.la sprite/libsprite_glsl.la
alias/libalias_glsl.la \
brush/libbrush_glsl.la \
sprite/libsprite_glsl.la
libQFmodels_glsl_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -rpath $(libdir)
libQFmodels_glsl_la_LIBADD= $(glsl_LIBS) $(models_libs)
libQFmodels_glsl_la_SOURCES= $(models_sources) glsl_skin.c
libQFmodels_glsl_la_DEPENDENCIES= $(glsl_LIBS) $(models_libs)
sw_LIBS= \
alias/libalias_sw.la brush/libbrush_sw.la sprite/libsprite_sw.la
alias/libalias_sw.la \
brush/libbrush_sw.la \
sprite/libsprite_sw.la
libQFmodels_sw_la_LDFLAGS= -version-info $(QUAKE_LIBRARY_VERSION_INFO) -rpath $(libdir) -no-undefined
libQFmodels_sw_la_LIBADD= $(sw_LIBS) $(models_libs)
libQFmodels_sw_la_SOURCES= $(models_sources) sw_skin.c

View file

@ -73,6 +73,7 @@ qw_server_LIBS= \
$(top_builddir)/libs/net/libnet_chan.la \
$(top_builddir)/libs/ruamoko/libQFruamoko.la \
$(top_builddir)/libs/models/libQFmodels.la \
$(top_builddir)/libs/image/libQFimage.la \
$(top_builddir)/libs/gamecode/engine/libQFgamecode.la \
$(top_builddir)/libs/console/libQFconsole.la \
$(top_builddir)/libs/gib/libQFgib.la \