Include the "build" module in GLib, too, to make it more self-contained.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.4
4
5 SUBDIRS = . gobject gmodule gthread docs tests build
6
7 bin_SCRIPTS=glib-config-2.0
8 BUILT_SOURCES=glib-config-2.0
9 glib-config-2.0: glib-config-2.0.in
10
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
12
13 EXTRA_DIST =                    \
14         ChangeLog.pre-1-2       \
15         glib-2.0.m4             \
16         glib.spec.in            \
17         acglib.m4               \
18         sanity_check            \
19         README.win32            \
20         TODO.xml                \
21         glib.def                \
22         makefile.msc            \
23         makefile.msc.in         \
24         makefile.mingw          \
25         makefile.mingw.in       \
26         giowin32.c              \
27         glibconfig.h.win32      \
28         glibconfig.h.win32.in   \
29         gwin32.c                \
30         config.h.win32          \
31         config.h.win32.in       \
32         build-dll               \
33         glib.rc                 \
34         glib.rc.in
35
36 lib_LTLIBRARIES = libglib-1.3.la
37
38 libglib_1_3_la_SOURCES =        \
39         garray.c                \
40         gasyncqueue.c           \
41         gbacktrace.c            \
42         gcache.c                \
43         gcompletion.c           \
44         gdataset.c              \
45         gdate.c                 \
46         gerror.c                \
47         ghash.c                 \
48         ghook.c                 \
49         giochannel.c            \
50         giounix.c               \
51         glist.c                 \
52         gmain.c                 \
53         gmem.c                  \
54         gmessages.c             \
55         gnode.c                 \
56         gprimes.c               \
57         gqueue.c                \
58         grel.c                  \
59         grand.c                 \
60         gscanner.c              \
61         gslist.c                \
62         gstrfuncs.c             \
63         gstring.c               \
64         gthread.c               \
65         gthreadpool.c           \
66         gtimer.c                \
67         gtree.c                 \
68         guniprop.c              \
69         gutf8.c                 \
70         gunichartables.h        \
71         gunidecomp.h            \
72         gunidecomp.c            \
73         gutils.c
74
75 glibincludedir=$(includedir)/glib-2.0
76 glibinclude_HEADERS =   \
77         gerror.h        \
78         glib.h          \
79         glib-object.h   \
80         gunicode.h
81
82 configexecincludedir = $(libdir)/glib-2.0/include
83 #configexecinclude_DATA = glibconfig.h
84
85 install-exec-local: glibconfig.h
86         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
87         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
88         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
89         else $(INSTALL_DATA) glibconfig.h $$file; fi
90
91 configure: configure.in acglib.m4               
92
93 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
94 glibconfig.h: stamp-gc-h
95         @if test -f glibconfig.h; then :; \
96         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
97 stamp-gc-h: config.status
98         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
99         echo timestamp > stamp-gc-h
100
101 libglib_1_3_la_LDFLAGS = \
102         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
103         -export-dynamic
104
105 noinst_PROGRAMS = testglib testgdate testgdateparser
106 testglib_LDADD = libglib-1.3.la
107 testgdate_LDADD = libglib-1.3.la
108 testgdateparser_LDADD = libglib-1.3.la
109
110 m4datadir = $(datadir)/aclocal
111 m4data_DATA = glib-2.0.m4
112
113 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
114         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
115
116 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
117         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
118
119 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
120         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
121
122 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
123         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
124
125 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
126         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
127
128 .PHONY: files release sanity snapshot
129
130 files:
131         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
132           echo $$p; \
133         done
134
135 release:
136         rm -rf .deps */.deps
137         cd docs && make glib.html
138         $(MAKE) distcheck
139
140 sanity:
141         ./sanity_check $(VERSION)
142
143 snapshot:
144         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
145
146 snapcheck:
147         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
148
149 dist-hook:
150         cp glib.spec $(distdir)