fbd8d83f0c415856efe5c49f276786fbdb6e0058
[platform/upstream/glib.git] / 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 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
8         -DG_DISABLE_COMPAT_H
9
10 EXTRA_DIST =                    \
11         ChangeLog.pre-1-2       \
12         glib-2.0.m4             \
13         glib.spec.in            \
14         acglib.m4               \
15         sanity_check            \
16         README.win32            \
17         TODO.xml                \
18         glib.def                \
19         makefile.msc.in         \
20         makefile.mingw.in       \
21         giowin32.c              \
22         glibconfig.h.win32.in   \
23         gwin32.c                \
24         gspawn-win32.c          \
25         gspawn-win32-helper.c   \
26         config.h.win32.in       \
27         build-dll               \
28         glib.rc.in              \
29         glib-2.0.pc.in          \
30         gobject-2.0.pc.in       \
31         gmodule-2.0.pc.in       \
32         gthread-2.0.pc.in       \
33         gen-unicode-tables.pl
34
35 # These may be in the builddir too
36 BUILT_EXTRA_DIST = \
37         makefile.msc            \
38         makefile.mingw          \
39         glibconfig.h.win32      \
40         config.h.win32          \
41         glib.rc                 \
42         glib.spec
43
44 lib_LTLIBRARIES = libglib-1.3.la
45
46 libglib_1_3_la_SOURCES =        \
47         garray.c                \
48         gasyncqueue.c           \
49         gbacktrace.c            \
50         gcache.c                \
51         gcompletion.c           \
52         gconvert.c              \
53         gdataset.c              \
54         gdate.c                 \
55         gerror.c                \
56         gfileutils.c            \
57         ghash.c                 \
58         ghook.c                 \
59         giochannel.c            \
60         giounix.c               \
61         glist.c                 \
62         gmain.c                 \
63         gmarkup.c               \
64         gmem.c                  \
65         gmessages.c             \
66         gnode.c                 \
67         gprimes.c               \
68         gqsort.c                \
69         gqueue.c                \
70         grel.c                  \
71         grand.c                 \
72         gscanner.c              \
73         gshell.c                \
74         gslist.c                \
75         gspawn.c                \
76         gstrfuncs.c             \
77         gstring.c               \
78         gthread.c               \
79         gthreadpool.c           \
80         gtimer.c                \
81         gtree.c                 \
82         guniprop.c              \
83         gutf8.c                 \
84         gunibreak.h             \
85         gunibreak.c             \
86         gunichartables.h        \
87         gunidecomp.h            \
88         gunidecomp.c            \
89         gutils.c
90
91 ## If we decide to link in 'alloca.c', this is how to do it
92 #libglib_1_3_la_LIBADD = @ALLOCA@
93
94 glibincludedir=$(includedir)/glib-2.0
95 glibinclude_HEADERS =   \
96         galloca.h       \
97         garray.h        \
98         gasyncqueue.h   \
99         gbacktrace.h    \
100         gcache.h        \
101         gcompat.h       \
102         gcompletion.h   \
103         gconvert.h      \
104         gdataset.h      \
105         gdate.h         \
106         gerror.h        \
107         gfileutils.h    \
108         ghash.h         \
109         ghook.h         \
110         giochannel.h    \
111         glib.h          \
112         glib-object.h   \
113         glist.h         \
114         gmacros.h       \
115         gmain.h         \
116         gmarkup.h       \
117         gmem.h          \
118         gmessages.h     \
119         gnode.h         \
120         gprimes.h       \
121         gqsort.h        \
122         gquark.h        \
123         gqueue.h        \
124         grand.h         \
125         grel.h          \
126         gscanner.h      \
127         gshell.h        \
128         gslist.h        \
129         gspawn.h        \
130         gstrfuncs.h     \
131         gstring.h       \
132         gthread.h       \
133         gthreadpool.h   \
134         gtimer.h        \
135         gtree.h         \
136         gtypes.h        \
137         gunicode.h      \
138         gutils.h        \
139         gwin32.h
140
141 configexecincludedir = $(libdir)/glib-2.0/include
142 #configexecinclude_DATA = glibconfig.h
143
144 install-exec-local: glibconfig.h
145         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
146         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
147         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
148         else $(INSTALL_DATA) glibconfig.h $$file; fi
149
150 CONFIGURE_DEPENDENCIES = acglib.m4
151
152 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
153 glibconfig.h: stamp-gc-h
154         @if test -f glibconfig.h; then :; \
155         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
156 stamp-gc-h: config.status
157         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
158         echo timestamp > stamp-gc-h
159
160 libglib_1_3_la_LIBADD = @ICONV_LIBS@
161
162 libglib_1_3_la_LDFLAGS = \
163         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
164         -export-dynamic
165
166 noinst_PROGRAMS = testglib testgdate testgdateparser timeloop
167 testglib_LDADD = libglib-1.3.la
168 testgdate_LDADD = libglib-1.3.la
169 testgdateparser_LDADD = libglib-1.3.la
170 timeloop_LDADD = libglib-1.3.la
171
172 m4datadir = $(datadir)/aclocal
173 m4data_DATA = glib-2.0.m4
174
175 pkgconfigdir = $(libdir)/pkgconfig
176 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
177
178 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
179         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
180
181 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
182         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
183
184 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
185         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
186
187 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
188         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
189
190 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
191         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
192
193 .PHONY: files release sanity snapshot
194
195 files:
196         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
197           echo $$p; \
198         done
199
200 release:
201         rm -rf .deps */.deps
202         cd docs && make glib.html
203         $(MAKE) distcheck
204
205 sanity:
206         ./sanity_check $(VERSION)
207
208 snapshot:
209         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
210
211 snapcheck:
212         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
213
214 dist-hook: $(BUILT_EXTRA_DIST)
215         files='$(BUILT_EXTRA_DIST)'; \
216         for f in $$files; do \
217           if test -f $$f; then d=.; else d=$(srcdir); fi; \
218           cp $$d/$$f $(distdir) || exit 1; done