Put -I$(top_srcdir) back into INCLUDES.
[platform/upstream/glib.git] / gmodule / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule -DG_LOG_DOMAIN=g_log_domain_gmodule
4
5 EXTRA_DIST =    \
6                 gmoduleconf.h.in \
7                 gmodule.def     \
8                 gmodule-dl.c    \
9                 gmodule-dld.c   \
10                 gmodule-win32.c \
11                 gmoduleconf.h.win32
12
13 BUILT_SOURCES = gmoduleconf.h
14 gmoduleconf.h:  gmoduleconf.h.in
15
16 include_HEADERS = \
17                 gmodule.h
18
19 libglib = $(top_builddir)/libglib.la # -lglib
20
21 lib_LTLIBRARIES = libgmodule.la libgplugin_a.la libgplugin_b.la
22
23 libgmodule_la_SOURCES = gmodule.c
24 libgmodule_la_LDFLAGS = \
25         @G_MODULE_LDFLAGS@ \
26         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
27         -release $(LT_RELEASE)
28
29 libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
30 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
31 # problem with this ;(
32
33 libgplugin_a_la_SOURCES = libgplugin_a.c
34 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@
35 libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
36
37 libgplugin_b_la_SOURCES = libgplugin_b.c
38 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@
39 libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
40
41 noinst_PROGRAMS = testgmodule
42 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
43 testgmodule_LDADD = libgmodule.la $(libglib) @G_MODULE_LIBS@
44
45 .PHONY: files release
46
47 files:
48         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
49           echo $$p; \
50         done
51
52 install-libLTLIBRARIES: libgmodule.la
53         @$(NORMAL_INSTALL)
54         $(mkinstalldirs) $(DESTDIR)$(libdir)
55         @list='libgmodule.la'; for p in $$list; do \
56          if test -f $$p; then \
57           echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
58           $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
59          else :; fi; \
60         done
61
62 release:
63         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`