]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* mdemo/Makefile.am (hell_debug_LDFLAGS): -dlpreopen -> -dlopen
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 19 Nov 1998 22:53:40 +0000 (22:53 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 19 Nov 1998 22:53:40 +0000 (22:53 +0000)
(hell_LDFLAGS): added -export-dynamic and -dlopen
(SUBDIRS, INCLUDES): added modules directory
(foo1.c, foo2.c, foo.h, libfoo1.sym, libfoo2.sym): moved to modules
* Makefile.am: ditto
* tests/mdemo-exec.test, tests/mdemo-inst.test: libraries moved
* mdemo/modules/Makefile.am: new file

* */Makefile.am (AUTOMAKE_OPTIONS): added no-dependencies

16 files changed:
ChangeLog
Makefile.am
demo/Makefile.am
libltdl/Makefile.am
mdemo/.cvsignore
mdemo/Makefile.am
mdemo/configure.in
mdemo/modules/.cvsignore [new file with mode: 0644]
mdemo/modules/Makefile.am [new file with mode: 0644]
mdemo/modules/foo.h [moved from mdemo/foo.h with 100% similarity]
mdemo/modules/foo1.c [moved from mdemo/foo1.c with 100% similarity]
mdemo/modules/foo2.c [moved from mdemo/foo2.c with 100% similarity]
mdemo/modules/libfoo1.sym [moved from mdemo/libfoo1.sym with 100% similarity]
mdemo/modules/libfoo2.sym [moved from mdemo/libfoo2.sym with 100% similarity]
tests/mdemo-exec.test
tests/mdemo-inst.test

index 7291026472ba8b8b2a524769b279ee987a645c76..d666cd34166ff100422d23f345f228168b61728a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * mdemo/Makefile.am (hell_debug_LDFLAGS): -dlpreopen -> -dlopen
+       (hell_LDFLAGS): added -export-dynamic and -dlopen
+       (SUBDIRS, INCLUDES): added modules directory
+       (foo1.c, foo2.c, foo.h, libfoo1.sym, libfoo2.sym): moved to modules
+       * Makefile.am: ditto
+       * tests/mdemo-exec.test, tests/mdemo-inst.test: libraries moved
+       * mdemo/modules/Makefile.am: new file
+
+       * */Makefile.am (AUTOMAKE_OPTIONS): added no-dependencies
+
        * ltmain.in: missing `test' between `&&' and `"$module"'
 
        * ltconfig.in (echo_test_string): the whole ltconfig script was
index 91a03d061b7cbb8b1842d0e56c8b147d95dd9bb4..dc46d619dd3a7a6a1c4f8920ea66dec8965f4d82 100644 (file)
@@ -24,9 +24,9 @@ demo_distfiles = demo/Makefile.in demo/Makefile.am demo/README \
 mdemo_distfiles = mdemo/Makefile.in mdemo/Makefile.am mdemo/README \
        mdemo/acinclude.m4 mdemo/aclocal.m4 \
        mdemo/configure mdemo/configure.in \
-       mdemo/foo.h mdemo/foo1.c mdemo/foo2.c \
-       mdemo/libfoo1.sym mdemo/libfoo2.sym \
-       mdemo/main.c mdemo/ltdl.h  mdemo/ltdl.c mdemo/ltdls.c
+       mdemo/main.c mdemo/modules/Makefile.in mdemo/modules/Makefile.am \
+       mdemo/modules/foo.h mdemo/modules/foo1.c mdemo/modules/foo2.c \
+       mdemo/modules/libfoo1.sym mdemo/modules/libfoo2.sym
 
 # Files in the libltdl subdirectory that go in the distribution.
 libltdl_distfiles = libltdl/Makefile.in libltdl/Makefile.am libltdl/README \
index a9685212c0752eb3b3852cc6b2c851d2118608bb..bccf547ea7345f1093d1c33abf38cb46551d2c5e 100644 (file)
@@ -3,7 +3,7 @@
 # NOTE: Don't forget that in the libtool distribution, files in this
 # directory are distributed by the demo_distfiles variable in the top
 # level Makefile.
-AUTOMAKE_OPTIONS = foreign
+AUTOMAKE_OPTIONS = no-dependencies foreign
 
 EXTRA_DIST = $(TESTS) acinclude.m4
 
index ccbb2b4dd6e9928f8980ba5df42b3445633bb32b..c849bcf1383ddfaa76227950187eb36df9947354 100644 (file)
@@ -3,7 +3,7 @@
 # NOTE: Don't forget that in the libtool distribution, files in this
 # directory are distributed by the demo_distfiles variable in the top
 # level Makefile.
-AUTOMAKE_OPTIONS = foreign
+AUTOMAKE_OPTIONS = no-dependencies foreign
 
 CFLAGS = -module
 
index 3b25c3fe809cf7ad7b3369553757f0aa91dbc440..b005d40ed25d997e5778028b31dc80e0b0f516d5 100644 (file)
@@ -7,7 +7,5 @@ configure
 config.*
 conftest*
 libtool
-*.lo
-*.la
 hell
 hell.debug
index 4bd49b916faab946ef649dde6aeb881568e516b4..f6c2ef47c26a3b236d5e1214584b2140ef51c674 100644 (file)
@@ -3,30 +3,26 @@
 # NOTE: Don't forget that in the libtool distribution, files in this
 # directory are distributed by the demo_distfiles variable in the top
 # level Makefile.
-AUTOMAKE_OPTIONS = foreign
+AUTOMAKE_OPTIONS = no-dependencies foreign
 
-INCLUDES = -I$(srcdir)/../libltdl
+SUBDIRS = modules
 
-EXTRA_DIST = acinclude.m4
-
-lib_LTLIBRARIES = libfoo1.la libfoo2.la
-libfoo1_la_SOURCES = foo1.c
-libfoo1_la_LDFLAGS = -export-symbols $(srcdir)/libfoo1.sym -lm -module
+INCLUDES = -I$(srcdir)/../libltdl -I$(srcdir)/modules
 
-libfoo2_la_SOURCES = foo2.c
-libfoo2_la_LDFLAGS = -export-symbols $(srcdir)/libfoo2.sym -lm -module
-
-include_HEADERS = foo.h
+EXTRA_DIST = acinclude.m4
 
 bin_PROGRAMS = hell hell.debug
 
 # Create a version of hell that does dlopen.
 hell_SOURCES = main.c
-hell_LDADD = ../libltdl/libltdl.la -lm 
-hell_DEPENDENCIES = libfoo1.la libfoo2.la
+hell_LDADD = ../libltdl/libltdl.la \
+       -lm # We won't need this when libltdl takes care of dependencies
+hell_LDFLAGS = -export-dynamic -dlopen modules/libfoo1.la -dlopen modules/libfoo2.la
+hell_DEPENDENCIES = modules/libfoo1.la modules/libfoo2.la
 
 # Create an easier-to-debug version of hell.
 hell_debug_SOURCES = main.c
-hell_debug_LDADD = ../libltdl/libltdl.la libfoo1.la libfoo2.la
+hell_debug_LDADD = ../libltdl/libltdl.la
 hell_debug_LDFLAGS = -static -export-dynamic \
-       -dlpreopen libfoo1.la -dlpreopen libfoo2.la
+       -dlpreopen modules/libfoo1.la -dlpreopen modules/libfoo2.la
+# Shouldn't this be the same as -dlopen, since we're linking statically?
index eb80319580db3ee9044efc38c95f48b81ec3a060..7aa88604fa81d055f8ed216a63af84535e353868 100644 (file)
@@ -7,4 +7,4 @@ AC_EXEEXT
 AM_PROG_LIBTOOL
 
 dnl Output the makefile
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile modules/Makefile)
diff --git a/mdemo/modules/.cvsignore b/mdemo/modules/.cvsignore
new file mode 100644 (file)
index 0000000..09980ae
--- /dev/null
@@ -0,0 +1,6 @@
+.deps
+.libs
+Makefile
+Makefile.in
+*.lo
+*.la
diff --git a/mdemo/modules/Makefile.am b/mdemo/modules/Makefile.am
new file mode 100644 (file)
index 0000000..22cff52
--- /dev/null
@@ -0,0 +1,20 @@
+# A brief demonstration of using Automake with Libtool. -*-Makefile-*-
+#
+# NOTE: Don't forget that in the libtool distribution, files in this
+# directory are distributed by the demo_distfiles variable in the top
+# level Makefile.
+AUTOMAKE_OPTIONS = no-dependencies foreign
+
+CFLAGS = @CFLAGS@ -module
+
+INCLUDES = -I$(srcdir)/../../libltdl
+
+lib_LTLIBRARIES = libfoo1.la libfoo2.la
+
+libfoo1_la_SOURCES = foo1.c
+libfoo1_la_LDFLAGS = -export-symbols $(srcdir)/libfoo1.sym -lm -module
+
+libfoo2_la_SOURCES = foo2.c
+libfoo2_la_LDFLAGS = -export-symbols $(srcdir)/libfoo2.sym -lm -module
+
+include_HEADERS = foo.h
similarity index 100%
rename from mdemo/foo.h
rename to mdemo/modules/foo.h
similarity index 100%
rename from mdemo/foo1.c
rename to mdemo/modules/foo1.c
similarity index 100%
rename from mdemo/foo2.c
rename to mdemo/modules/foo2.c
similarity index 100%
rename from mdemo/libfoo1.sym
rename to mdemo/modules/libfoo1.sym
similarity index 100%
rename from mdemo/libfoo2.sym
rename to mdemo/modules/libfoo2.sym
index 3a231a51a1b9a6e389da33ba88e52496c71bbd9f..0aa99f19e7cb647b207981f8784f26683a33a174 100755 (executable)
@@ -19,19 +19,19 @@ fi
 # Check to see if the programs really run.
 echo "Executing uninstalled programs in ../mdemo"
 
-old_library1=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/libfoo1.la`
-old_library2=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/libfoo2.la`
-dlname1=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/libfoo1.la`
-dlname2=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/libfoo2.la`
+old_library1=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/modules/libfoo1.la`
+old_library2=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/modules/libfoo2.la`
+dlname1=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/modules/libfoo1.la`
+dlname2=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/modules/libfoo2.la`
 
 status=0
-if ../mdemo/hell.debug .libs/$old_library1 .libs/$old_library2; then :
+if ../mdemo/hell.debug modules/.libs/$old_library1 modules/.libs/$old_library2; then :
 else
   echo "$0: cannot execute ../mdemo/hell.debug" 1>&2
   status=1
 fi
 
-if ../mdemo/hell ../mdemo/.libs/$dlname1 ../mdemo/.libs/$dlname2; then :
+if ../mdemo/hell ../mdemo/modules/.libs/$dlname1 ../mdemo/modules/.libs/$dlname2; then :
 else
   echo "$0: cannot execute ../mdemo/hell" 1>&2
   status=1
index b8bacd632d763b637377a617f9fc787ededbe91f..2c0fc9442c945a6f737adbdfec1b567a6ef715b4 100755 (executable)
@@ -35,13 +35,13 @@ $make install || exit 1
 
 echo "= Executing installed programs"
 
-old_library1=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/libfoo1.la`
-old_library2=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/libfoo2.la`
-dlname1=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/libfoo1.la`
-dlname2=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/libfoo2.la`
+old_library1=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/modules/libfoo1.la`
+old_library2=`sed -n -e "s/^old_library='\(.*\)'/\1/p" ../mdemo/modules/libfoo2.la`
+dlname1=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/modules/libfoo1.la`
+dlname2=`sed -n -e "s/^dlname='\(.*\)'/\1/p" ../mdemo/modules/libfoo2.la`
 
 status=0
-if $prefix/bin/hell.debug .libs/$old_library1 .libs/$old_library2; then :
+if $prefix/bin/hell.debug modules/.libs/$old_library1 modules/.libs/$old_library2; then :
 else
   echo "$0: cannot execute $prefix/bin/hell.debug" 1>&2
   status=1