tdopewars finally builds and installs properly both with plugins and with static modules. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b5cd13c78ad6c2453786dcde5e4e1c611462092b
(DIR) parent c531ccd9b1397278a0ac81fd13c4610961e6fdc9
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 13 May 2002 15:55:16 +0000
dopewars finally builds and installs properly both with plugins and with
static modules.
Diffstat:
M src/plugins/Makefile.am | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
t@@ -1,4 +1,4 @@
-lib_LTLIBRARIES = libsound_esd.la libsound_sdl.la libsound_winmm.la
+noinst_LTLIBRARIES = libsound_esd.la libsound_sdl.la libsound_winmm.la
libsound_esd_la_SOURCES = sound_esd.c sound_esd.h
libsound_esd_la_LDFLAGS = @ESD_LIBS@
libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h
t@@ -6,12 +6,24 @@ libsound_sdl_la_LDFLAGS = @SDL_LIBS@
libsound_winmm_la_SOURCES = sound_winmm.c sound_winmm.h
LIBS = @GLIB_LIBS@
INCLUDES = @SOUND_CFLAGS@ @GLIB_CFLAGS@
+LINKNOO = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
if PLUGINS
PLUGINDIR = ${DESTDIR}${plugindir}
PLUGINS = .libs/libsound_sdl.so .libs/libsound_esd.so .libs/libsound_winmm.so
-install-exec-local:
+all-local: ${PLUGINS}
+
+.libs/libsound_esd.so: $(libsound_esd_la_OBJECTS)
+ $(LINKNOO) -o libsound_esd.la -rpath $(libdir) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS)
+
+.libs/libsound_sdl.so: $(libsound_sdl_la_OBJECTS)
+ $(LINKNOO) -o libsound_sdl.la -rpath $(libdir) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS)
+
+.libs/libsound_winmm.so: $(libsound_winmm_la_OBJECTS)
+ $(LINKNOO) -o libsound_winmm.la -rpath $(libdir) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS)
+
+install-exec-am:
${mkinstalldirs} ${PLUGINDIR}
for plug in ${PLUGINS}; do \
${INSTALL} ${srcdir}/$${plug} ${PLUGINDIR}; \