summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorIvan Wong <email@ivanwong.info>2004-11-03 05:30:27 +0000
committerDavid Hoover <dhoover@src.gnome.org>2004-11-03 05:30:27 +0000
commit0b45fe74db1505b464b1756cb2fa85a448150544 (patch)
treedcde3e3ce6181da8753bd90ebb5677cedbaa5195 /src/Makefile.am
parent66f3e73c715e5fa86a978eb51581c37d855cca85 (diff)
downloadglade-0b45fe74db1505b464b1756cb2fa85a448150544.tar.gz
Win32 related fixes (bug 154927)
2004-11-02 Ivan Wong <email@ivanwong.info> * acconfig.h, autogen.sh, config.h.win, configure.in, src/Makefile.am, src/glade-catalog.c, src/glade-palette.c, src/glade-project-window.c, src/glade-widget-class.c, src/glade_plugin.def, src/main.c: Win32 related fixes (bug 154927)
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index bcc72916..11534bb4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,6 +12,13 @@ EXTRA_DIST = \
libgladegtk_la_SOURCES = glade-gtk.c
libgladegtk_la_LDFLAGS = -module -avoid-version
+if WITH_WIN32
+ glade_3_LDFLAGS = glade_plugin.def
+ libgladegtk_la_LDFLAGS += -no-undefined -L./ -Wl,$(bin_PROGRAMS).a $(GLADE_LIBS)
+ libgladegtk_la_DEPENDENCIES = $(bin_PROGRAMS).a
+ CLEANFILES = $(bin_PROGRAMS).a $(CLEANFILES)
+endif
+
INCLUDES = \
-I$(top_srcdir) \
-I$(top_builddir) \
@@ -25,7 +32,7 @@ INCLUDES = \
-DMODULES_DIR=\""@modulesdir@"\" \
-DG_LOG_DOMAIN=\"Glade\"
-CFLAGS = -g -Wall
+AM_CFLAGS = -g -Wall
glade_3_LDADD = \
$(GLADE_LIBS)
@@ -33,7 +40,7 @@ glade_3_LDADD = \
BUILT_SOURCES = \
glade-marshallers.c \
glade-marshallers.h
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES = $(BUILT_SOURCES) $(CLEANFILES)
glade_3_SOURCES = \
main.c \
@@ -98,6 +105,8 @@ noinst_HEADERS = \
glade-id-allocator.h \
glade-marshallers.h
+$(bin_PROGRAMS).a: $(bin_PROGRAMS)
+ $(DLLTOOL) -D $(bin_PROGRAMS) -d glade_plugin.def -l $(bin_PROGRAMS).a
#
# Marshaller generation
#