Remove ABI checking scripts
[platform/upstream/glib.git] / gmodule / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
3
4 AM_CPPFLAGS =                           \
5         $(glib_INCLUDES)                \
6         -DG_LOG_DOMAIN=\"GModule\"      \
7         @GLIB_DEBUG_FLAGS@              \
8         -DG_DISABLE_DEPRECATED
9
10 EXTRA_DIST +=                           \
11                 makefile.msc.in         \
12                 gmoduleconf.h.in        \
13                 gmodule-dl.c            \
14                 gmodule-dld.c           \
15                 gmodule-dyld.c          \
16                 gmodule-os2.c           \
17                 gmodule-win32.c         \
18                 gmodule-beos.c          \
19                 gmodule-ar.c            \
20                 gmoduleconf.h.win32     \
21                 gmodule.rc.in
22
23 BUILT_EXTRA_DIST = \
24                 makefile.msc    \
25                 gmodule.rc
26
27 BUILT_SOURCES = gmoduleconf.h
28 gmoduleconf.h:  gmoduleconf.h.in
29
30 glibincludedir=$(includedir)/glib-2.0
31 glibinclude_HEADERS = \
32                 gmodule.h
33
34 libglib = $(top_builddir)/glib/libglib-2.0.la
35
36 top_builddir_full=`cd \$(top_builddir); pwd`
37
38 lib_LTLIBRARIES = libgmodule-2.0.la
39
40 if OS_WIN32_AND_DLL_COMPILATION
41 if MS_LIB_AVAILABLE
42 noinst_DATA = gmodule-2.0.lib
43
44 install_ms_lib_cmd = $(INSTALL) gmodule-2.0.lib $(DESTDIR)$(libdir)
45 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gmodule-2.0.lib
46 endif
47 endif
48
49 install-ms-lib:
50         $(install_ms_lib_cmd)
51
52 uninstall-ms-lib:
53         $(uninstall_ms_lib_cmd)
54
55 if PLATFORM_WIN32
56 no_undefined = -no-undefined
57 endif
58
59 if OS_WIN32_AND_DLL_COMPILATION
60 gmodule_win32_res = gmodule-win32-res.o
61 gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
62 endif
63
64 libgmodule_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
65 libgmodule_2_0_la_SOURCES = gmodule.c
66 libgmodule_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
67         $(gmodule_win32_res_ldflag) \
68         $(G_MODULE_LDFLAGS) \
69         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
70         -export-dynamic $(no_undefined)
71
72 libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
73
74 libgmodule_2_0_la_DEPENDENCIES = $(gmodule_win32_res) $(gmodule_def)
75
76 gmodule-win32-res.o: gmodule.rc
77         $(AM_V_GEN) $(WINDRES) gmodule.rc $@
78
79 gmodule-2.0.lib: libgmodule-2.0.la gmodule.def
80         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgmodule-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gmodule.def -out:$@
81
82 .PHONY: files release
83
84 files:
85         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
86           echo $$p; \
87         done
88
89 release:
90         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
91
92 dist-hook: $(BUILT_EXTRA_DIST)
93         @files='$(BUILT_EXTRA_DIST)'; \
94         for f in $$files; do \
95           if test -f $$f; then d=.; else d=$(srcdir); fi; \
96           cp $$d/$$f $(distdir) || exit 1; done
97
98
99 install-data-local: install-ms-lib
100
101 uninstall-local: uninstall-ms-lib
102
103 if HAVE_GLIB_RUNTIME_LIBDIR
104 install-data-hook:
105         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
106         mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
107         mv $(DESTDIR)$(libdir)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
108         rm -f $(DESTDIR)$(libdir)/libgmodule-2.0.so
109         ln -s $(GLIB_RUNTIME_LIBDIR)/libgmodule-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgmodule-2.0.so
110 endif