Remove warnings about conflicts with the stable version.
[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_DEPRECATED -DGLIB_COMPILATION
9
10 EXTRA_DIST =                    \
11         ChangeLog.pre-1-2       \
12         glib-2.0.m4             \
13         glib.spec.in            \
14         NEWS.pre-1-3            \
15         acglib.m4               \
16         sanity_check            \
17         README.win32            \
18         TODO.xml                \
19         glib.def                \
20         makefile.msc.in         \
21         makefile.mingw.in       \
22         glibconfig.h.win32.in   \
23         config.h.win32.in       \
24         build-dll               \
25         glib.rc.in              \
26         glib-2.0.pc.in          \
27         gobject-2.0.pc.in       \
28         gmodule-2.0.pc.in       \
29         gthread-2.0.pc.in       \
30         gen-unicode-tables.pl
31
32 # These may be in the builddir too
33 BUILT_EXTRA_DIST =              \
34         makefile.msc            \
35         makefile.mingw          \
36         glibconfig.h.win32      \
37         config.h.win32          \
38         glib.rc                 \
39         glib.spec
40
41 lib_LTLIBRARIES = libglib-1.3.la
42
43 libglib_1_3_la_SOURCES =        \
44         garray.c                \
45         gasyncqueue.c           \
46         gbacktrace.c            \
47         gcache.c                \
48         gcompletion.c           \
49         gconvert.c              \
50         gdataset.c              \
51         gdate.c                 \
52         gerror.c                \
53         gfileutils.c            \
54         ghash.c                 \
55         ghook.c                 \
56         giochannel.c            \
57         glibintl.h              \
58         glist.c                 \
59         gmain.c                 \
60         gmarkup.c               \
61         gmem.c                  \
62         gmessages.c             \
63         gnode.c                 \
64         gpattern.c              \
65         gprimes.c               \
66         gqsort.c                \
67         gqueue.c                \
68         grel.c                  \
69         grand.c                 \
70         gscanner.c              \
71         gshell.c                \
72         gslist.c                \
73         gstrfuncs.c             \
74         gstring.c               \
75         gthread.c               \
76         gthreadpool.c           \
77         gtimer.c                \
78         gtree.c                 \
79         guniprop.c              \
80         gutf8.c                 \
81         gunibreak.h             \
82         gunibreak.c             \
83         gunichartables.h        \
84         gunidecomp.h            \
85         gunidecomp.c            \
86         gutils.c
87
88 EXTRA_libglib_1_3_la_SOURCES = \
89         giounix.c       \
90         giowin32.c      \
91         gspawn.c        \
92         gspawn-win32.c  \
93         gwin32.c
94
95 glibincludedir=$(includedir)/glib-2.0
96 glibinclude_HEADERS =   \
97         galloca.h       \
98         garray.h        \
99         gasyncqueue.h   \
100         gbacktrace.h    \
101         gcache.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         gpattern.h      \
121         gprimes.h       \
122         gqsort.h        \
123         gquark.h        \
124         gqueue.h        \
125         grand.h         \
126         grel.h          \
127         gscanner.h      \
128         gshell.h        \
129         gslist.h        \
130         gspawn.h        \
131         gstrfuncs.h     \
132         gstring.h       \
133         gthread.h       \
134         gthreadpool.h   \
135         gtimer.h        \
136         gtree.h         \
137         gtypes.h        \
138         gunicode.h      \
139         gutils.h        \
140         gwin32.h
141
142 configexecincludedir = $(libdir)/glib-2.0/include
143 #configexecinclude_DATA = glibconfig.h
144
145 install-exec-local: glibconfig.h
146         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
147         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
148         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
149         else $(INSTALL_DATA) glibconfig.h $$file; fi
150
151 CONFIGURE_DEPENDENCIES = acglib.m4
152
153 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
154 glibconfig.h: stamp-gc-h
155         @if test -f glibconfig.h; then :; \
156         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
157 stamp-gc-h: config.status
158         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
159         echo timestamp > stamp-gc-h
160
161 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
162 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@ 
163
164
165 if PLATFORM_WIN32
166 no_undefined = -no-undefined
167 endif
168 if OS_WIN32
169 # This requires a very new libtool
170 export_symbols = -export-symbols glib.def
171 endif
172
173 libglib_1_3_la_LDFLAGS = \
174         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
175         -export-dynamic $(no_undefined) $(export_symbols)
176
177 if OS_WIN32
178 bin_PROGRAMS = gspawn-win32-helper
179 gspawn_win32_helper_LDADD = libglib-1.3.la
180 endif
181 if ENABLE_TIMELOOP
182 timeloop = timeloop
183 endif
184 noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
185 testglib_LDADD = libglib-1.3.la
186 testgdate_LDADD = libglib-1.3.la
187 testgdateparser_LDADD = libglib-1.3.la
188 if ENABLE_TIMELOOP
189 timeloop_LDADD = libglib-1.3.la
190 endif
191 m4datadir = $(datadir)/aclocal
192 m4data_DATA = glib-2.0.m4
193
194 pkgconfigdir = $(libdir)/pkgconfig
195 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
196
197 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
198         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
199
200 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
201         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
202
203 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
204         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
205
206 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
207         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
208
209 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
210         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
211
212 bin_SCRIPTS=glib-config-2.0
213 BUILT_SOURCES=glib-config-2.0
214 glib-config-2.0: glib-config-2.0.in
215
216 .PHONY: files release sanity snapshot
217
218 files:
219         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
220           echo $$p; \
221         done
222
223 release:
224         rm -rf .deps */.deps
225         cd docs && make glib.html
226         $(MAKE) distcheck
227
228 sanity:
229         ./sanity_check $(VERSION)
230
231 snapshot:
232         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
233
234 snapcheck:
235         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
236
237 dist-hook: $(BUILT_EXTRA_DIST)
238         cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
239         files='$(BUILT_EXTRA_DIST)' INSTALL README; \
240         for f in $$files; do \
241           if test -f $$f; then d=.; else d=$(srcdir); fi; \
242           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done