source: trunk/third/glib2/gmodule/Makefile.am @ 18159

Revision 18159, 2.9 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18158, which included commits to RCS files with non-trunk default branches.
Line 
1## Process this file with automake to produce Makefile.in
2
3INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule \
4        -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED
5
6EXTRA_DIST =    \
7                makefile.mingw.in \
8                makefile.msc.in \
9                gmoduleconf.h.in \
10                gmodule.def     \
11                gmodule-dl.c    \
12                gmodule-dld.c   \
13                gmodule-dyld.c  \
14                gmodule-os2.c   \
15                gmodule-win32.c \
16                gmodule-beos.c  \
17                gmoduleconf.h.win32 \
18                gmodule.rc.in
19
20BUILT_EXTRA_DIST = \
21                makefile.mingw  \
22                makefile.msc    \
23                gmodule.rc
24
25BUILT_SOURCES = gmoduleconf.h
26gmoduleconf.h:  gmoduleconf.h.in
27
28glibincludedir=$(includedir)/glib-2.0
29glibinclude_HEADERS = \
30                gmodule.h
31
32libglib = $(top_builddir)/glib/libglib-2.0.la
33
34top_builddir_full=`cd \$(top_builddir); pwd`
35
36lib_LTLIBRARIES = libgmodule-2.0.la
37
38if MS_LIB_AVAILABLE
39noinst_DATA = gmodule-2.0.lib
40
41install-ms-lib:
42        $(INSTALL) gmodule-2.0.lib $(DESTDIR)$(libdir)
43
44uninstall-ms-lib:
45        -rm $(DESTDIR)$(libdir)/gmodule-2.0.lib
46else
47install-ms-lib:
48uninstall-ms-lib:
49endif
50
51if PLATFORM_WIN32
52no_undefined = -no-undefined
53endif
54
55if OS_WIN32
56export_symbols = -export-symbols gmodule.def
57
58install-libtool-import-lib:
59        $(INSTALL) .libs/libgmodule-2.0.dll.a $(DESTDIR)$(libdir)
60uninstall-libtool-import-lib:
61        -rm $(DESTDIR)$(libdir)/libgmodule-2.0.dll.a
62else
63install-libtool-import-lib:
64uninstall-libtool-import-lib:
65endif
66
67libgmodule_2_0_la_SOURCES = gmodule.c
68libgmodule_2_0_la_LDFLAGS = \
69        @G_MODULE_LDFLAGS@ \
70        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
71        -export-dynamic $(no_undefined) $(export_symbols)
72
73libgmodule_2_0_la_LIBADD = @G_MODULE_WIN32_RESOURCE@ @G_MODULE_LIBS_EXTRA@ @G_MODULE_LIBS@ $(libglib)
74
75libgmodule_2_0_la_DEPENDENCIES = @G_MODULE_WIN32_RESOURCE@ @GMODULE_DEF@
76
77if OS_WIN32
78@G_MODULE_WIN32_RESOURCE@ : gmodule.rc
79        $(top_srcdir)/build/win32/lt-compile-resource gmodule.rc @G_MODULE_WIN32_RESOURCE@
80endif
81
82gmodule-2.0.lib: libgmodule-2.0.la gmodule.def
83        lib -name:libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll -def:gmodule.def -out:$@
84
85gmodule.rc: $(top_builddir)/config.status $(top_srcdir)/gmodule/gmodule.rc.in
86        cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
87
88makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gmodule/makefile.mingw.in
89        cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
90
91makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gmodule/makefile.msc.in
92        cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
93
94.PHONY: files release
95
96files:
97        @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
98          echo $$p; \
99        done
100
101release:
102        $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
103
104dist-hook: $(BUILT_EXTRA_DIST)
105        @files='$(BUILT_EXTRA_DIST)'; \
106        for f in $$files; do \
107          if test -f $$f; then d=.; else d=$(srcdir); fi; \
108          cp $$d/$$f $(distdir) || exit 1; done
109
110
111install-data-local: install-ms-lib install-libtool-import-lib
112
113uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
Note: See TracBrowser for help on using the repository browser.