libtool/tests/depdemo
Peter Rosin 13608ea10f tests: clean up importing and exporting on w32.
Makes the touched tests pass for MSVC when DLLs are built.

* tests/demo/Makefile.am, tests/pdemo/Makefile.am: Define
BUILDING_LIBHELLO when building libhello.la.
* tests/demo/foo.h, tests/pdemo/foo.h (nothing) <MSVC>: Export
variable when building the libhello dll and import when using
libhello.  For GCC and non-w32, and when building a static
libhello, leave as an ordinary extern.
* tests/pdemo/foo.h [Cygwin]: Remove unneeded and "dead" export
and import logic (LIBFOO_DLL is always undefined).
* tests/pdemo/longer_file_name_foo.c,
tests/pdemo/longer_file_name_foo2.c (_LIBFOO_COMPILATION_): Not
useful before, even less so now.  Removed.
* tests/depdemo/l1/Makefile.am: Define BUILDING_LIBL1 when
building libl1.la.
* tests/depdemo/l2/Makefile.am: Define BUILDING_LIBL2 when
building libl2.la.
* tests/depdemo/l3/Makefile.am: Define BUILDING_LIBL3 when
building libl3.la.
* tests/depdemo/l4/Makefile.am: Define BUILDING_LIBL4 when
building libl4.la.
* tests/depdemo/l1/l1.h, tests/depdemo/l2/l2.h,
tests/depdemo/l3/l3.h, tests/depdemo/l4/l4.h <MSVC>: Export
variables when building the associated library dll and import
when using the library.  For GCC and non-w32, and when building
static libraries, leave as an ordinary extern.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-09-27 10:08:05 +02:00
..
l1 tests: clean up importing and exporting on w32. 2010-09-27 10:08:05 +02:00
l2 tests: clean up importing and exporting on w32. 2010-09-27 10:08:05 +02:00
l3 tests: clean up importing and exporting on w32. 2010-09-27 10:08:05 +02:00
l4 tests: clean up importing and exporting on w32. 2010-09-27 10:08:05 +02:00
.gitignore Add .gitignore files. 2008-04-16 21:31:03 +02:00
configure.ac * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
main.c * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00
Makefile.am * tests/cdemo, tests/depdemo, tests/fcdemo, tests/pdemo, 2008-01-31 16:19:18 +00:00
README spurious commit abort earlier :-( 2003-10-14 21:46:13 +00:00
sysdep.h * HACKING (Licensing Rules): Explain the various license texts 2007-03-25 12:12:44 +00:00

This is depdemo, an example package that uses GNU libtool with an
Automake-generated environment to build many interdependent libraries
and a test program.

There are four libraries: l1, l2, l3 and l4.
l1 depends on nothing.
l2 depends on l1.
l3 depends on l1 and l2.
l4 depends on l3 and libm.

The test program uses l1, l2 and l4.