[dia] mingw: object plug-ins as shared libaries



commit 539abefa9a1c011ea5ff32b3bab5ca52833bd04d
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Sun Aug 29 18:06:49 2010 +0200

    mingw: object plug-ins as shared libaries
    
    [PATCH 3/6] Make objects build as shared objects on
    windows with mingw and autotools
    
    Signed-off-by: Hans Breuer <hans breuer org>

 objects/AADL/Makefile.am         |    6 ++++--
 objects/Database/Makefile.am     |    4 +++-
 objects/ER/Makefile.am           |    4 +++-
 objects/FS/Makefile.am           |    4 +++-
 objects/GRAFCET/Makefile.am      |    4 +++-
 objects/Istar/Makefile.am        |    4 +++-
 objects/Jackson/Makefile.am      |    4 +++-
 objects/KAOS/Makefile.am         |    4 +++-
 objects/Misc/Makefile.am         |    4 +++-
 objects/SADT/Makefile.am         |    6 ++++--
 objects/SISSI/Makefile.am        |    4 +++-
 objects/UML/Makefile.am          |    2 +-
 objects/chronogram/Makefile.am   |    4 +++-
 objects/custom/Makefile.am       |    4 +++-
 objects/custom_lines/Makefile.am |    4 +++-
 objects/flowchart/Makefile.am    |    4 +++-
 objects/network/Makefile.am      |    6 ++++--
 objects/standard/Makefile.am     |    4 +++-
 18 files changed, 55 insertions(+), 21 deletions(-)
---
diff --git a/objects/AADL/Makefile.am b/objects/AADL/Makefile.am
index af8049f..08360e6 100755
--- a/objects/AADL/Makefile.am
+++ b/objects/AADL/Makefile.am
@@ -19,9 +19,11 @@ libaadl_objects_la_SOURCES = \
                              aadlthreadgroup.c    \
                              aadlpackage.c        \
                              edit_port_declaration.h \
-                             edit_port_declaration.c 
+                             edit_port_declaration.c
 
-libaadl_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libaadl_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libaadl_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS) $(GNOME_CFLAGS) $(PANGOFT2_CFLAGS) $(UNICODE_CFLAGS)
diff --git a/objects/Database/Makefile.am b/objects/Database/Makefile.am
index 3d22669..f4dbb03 100644
--- a/objects/Database/Makefile.am
+++ b/objects/Database/Makefile.am
@@ -9,7 +9,9 @@ libdb_objects_la_SOURCES = \
 	reference.c \
 	compound.c
 
-libdb_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libdb_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libdb_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS) $(GNOME_CFLAGS) $(PANGOFT2_CFLAGS) $(UNICODE_CFLAGS)
diff --git a/objects/ER/Makefile.am b/objects/ER/Makefile.am
index 78f2725..dc1020d 100644
--- a/objects/ER/Makefile.am
+++ b/objects/ER/Makefile.am
@@ -8,7 +8,9 @@ liber_objects_la_SOURCES = \
 			participation.c \
 			er.c
 
-liber_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+liber_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+liber_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS) $(GNOME_CFLAGS) $(PANGOFT2_CFLAGS) $(UNICODE_CFLAGS)
diff --git a/objects/FS/Makefile.am b/objects/FS/Makefile.am
index 66c6869..bead336 100644
--- a/objects/FS/Makefile.am
+++ b/objects/FS/Makefile.am
@@ -7,7 +7,9 @@ libfs_objects_la_SOURCES = \
 			flow-ortho.c \
 			function.c
 
-libfs_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libfs_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libfs_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/GRAFCET/Makefile.am b/objects/GRAFCET/Makefile.am
index 0fe09c4..0c3dc66 100644
--- a/objects/GRAFCET/Makefile.am
+++ b/objects/GRAFCET/Makefile.am
@@ -15,7 +15,9 @@ libgrafcet_objects_la_SOURCES = \
 			vergent.c \
 			vector.c
 
-libgrafcet_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libgrafcet_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libgrafcet_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/Istar/Makefile.am b/objects/Istar/Makefile.am
index 13d04b5..0786b54 100644
--- a/objects/Istar/Makefile.am
+++ b/objects/Istar/Makefile.am
@@ -9,7 +9,9 @@ libistar_objects_la_SOURCES = \
 			other.c \
 			link.c
 
-libistar_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libistar_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libistar_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/Jackson/Makefile.am b/objects/Jackson/Makefile.am
index 4deebe6..ebe2768 100644
--- a/objects/Jackson/Makefile.am
+++ b/objects/Jackson/Makefile.am
@@ -8,7 +8,9 @@ libjackson_objects_la_SOURCES = \
 			requirement.c \
 			phenomenon.c
 
-libjackson_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libjackson_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libjackson_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/KAOS/Makefile.am b/objects/KAOS/Makefile.am
index 1932e71..ff4df03 100644
--- a/objects/KAOS/Makefile.am
+++ b/objects/KAOS/Makefile.am
@@ -9,7 +9,9 @@ libkaos_objects_la_SOURCES = \
 			metabinrel.c \
 			metaandorrel.c
 
-libkaos_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libkaos_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libkaos_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/Misc/Makefile.am b/objects/Misc/Makefile.am
index 0dd48ff..306fae4 100644
--- a/objects/Misc/Makefile.am
+++ b/objects/Misc/Makefile.am
@@ -10,7 +10,9 @@ libmisc_objects_la_SOURCES = \
 			tree.c
 
 
-libmisc_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libmisc_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libmisc_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/SADT/Makefile.am b/objects/SADT/Makefile.am
index fd0431a..aa20d95 100644
--- a/objects/SADT/Makefile.am
+++ b/objects/SADT/Makefile.am
@@ -6,9 +6,11 @@ libsadt_objects_la_SOURCES = \
 			sadt.c \
 			arrow.c \
 			box.c \
-			annotation.c 
+			annotation.c
 
-libsadt_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libsadt_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libsadt_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/SISSI/Makefile.am b/objects/SISSI/Makefile.am
index f6c9d19..35ebfed 100644
--- a/objects/SISSI/Makefile.am
+++ b/objects/SISSI/Makefile.am
@@ -19,7 +19,9 @@ libsissi_objects_la_SOURCES = \
 	area.c \
 	area.h
 
-libsissi_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libsissi_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libsissi_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/UML/Makefile.am b/objects/UML/Makefile.am
index 54740cb..d3eb603 100644
--- a/objects/UML/Makefile.am
+++ b/objects/UML/Makefile.am
@@ -38,7 +38,7 @@ libuml_objects_la_SOURCES = \
 			umlparameter.c \
 			umlformalparameter.c
 
-libuml_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libuml_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
 libuml_objects_la_LIBADD = $(CAIRO_LIBS) $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
diff --git a/objects/chronogram/Makefile.am b/objects/chronogram/Makefile.am
index d762033..a4ea71c 100644
--- a/objects/chronogram/Makefile.am
+++ b/objects/chronogram/Makefile.am
@@ -10,7 +10,9 @@ libchronogram_objects_la_SOURCES = \
 			chronoline_event.c
 
 
-libchronogram_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libchronogram_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libchronogram_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS) $(GNOME_CFLAGS) $(PANGOFT2_CFLAGS) $(UNICODE_CFLAGS)
diff --git a/objects/custom/Makefile.am b/objects/custom/Makefile.am
index ad79892..bcfb1f5 100644
--- a/objects/custom/Makefile.am
+++ b/objects/custom/Makefile.am
@@ -11,7 +11,9 @@ libcustom_objects_la_SOURCES = \
 	custom_util.h \
 	custom.c
 
-libcustom_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libcustom_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libcustom_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 shapedir = $(pkgdatadir)/shapes
 
diff --git a/objects/custom_lines/Makefile.am b/objects/custom_lines/Makefile.am
index 49d7f05..6b8598e 100644
--- a/objects/custom_lines/Makefile.am
+++ b/objects/custom_lines/Makefile.am
@@ -8,7 +8,9 @@ libcustom_lines_objects_la_SOURCES = \
 	line_info.c \
 	line_info.h
 
-libcustom_lines_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libcustom_lines_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libcustom_lines_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = \
 	-I$(srcdir)/../../lib \
diff --git a/objects/flowchart/Makefile.am b/objects/flowchart/Makefile.am
index 0e4b93d..2c068f2 100644
--- a/objects/flowchart/Makefile.am
+++ b/objects/flowchart/Makefile.am
@@ -8,7 +8,9 @@ libflowchart_objects_la_SOURCES = \
 			ellipse.c \
 			flowchart.c
 
-libflowchart_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libflowchart_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libflowchart_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/network/Makefile.am b/objects/network/Makefile.am
index ecdf1f7..6a81e53 100644
--- a/objects/network/Makefile.am
+++ b/objects/network/Makefile.am
@@ -7,9 +7,11 @@ libnetwork_objects_la_SOURCES = \
 			      bus.c \
 			      radiocell.c \
 			      basestation.c \
-			      wanlink.c 
+			      wanlink.c
 
-libnetwork_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libnetwork_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libnetwork_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 INCLUDES = -I$(top_srcdir)/intl -I$(srcdir)/../../lib \
 	$(DEBUG_FLAGS) $(GTK_CFLAGS)
diff --git a/objects/standard/Makefile.am b/objects/standard/Makefile.am
index ad04e68..640d4aa 100644
--- a/objects/standard/Makefile.am
+++ b/objects/standard/Makefile.am
@@ -16,7 +16,9 @@ libstandard_objects_la_SOURCES = \
 	beziergon.c \
 	tool-icons.h
 
-libstandard_objects_la_LDFLAGS = -export-dynamic -module -avoid-version
+libstandard_objects_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+
+libstandard_objects_la_LIBADD = $(top_builddir)/lib/libdia.la
 
 ICON_PNG_PAIRS= \
 	arc_icon $(srcdir)/pixmaps/arc.png \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]