1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . gobject gmodule gthread docs tests build
7 bin_SCRIPTS=glib-config-2.0
8 BUILT_SOURCES=glib-config-2.0
9 glib-config-2.0: glib-config-2.0.in
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
25 glibconfig.h.win32.in \
28 gspawn-win32-helper.c \
37 # These may be in the builddir too
46 lib_LTLIBRARIES = libglib-1.3.la
48 libglib_1_3_la_SOURCES = \
91 ## If we decide to link in 'alloca.c', this is how to do it
92 #libglib_1_3_la_LIBADD = @ALLOCA@
94 glibincludedir=$(includedir)/glib-2.0
95 glibinclude_HEADERS = \
140 configexecincludedir = $(libdir)/glib-2.0/include
141 #configexecinclude_DATA = glibconfig.h
143 install-exec-local: glibconfig.h
144 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
145 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
146 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
147 else $(INSTALL_DATA) glibconfig.h $$file; fi
149 CONFIGURE_DEPENDENCIES = acglib.m4
151 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
152 glibconfig.h: stamp-gc-h
153 @if test -f glibconfig.h; then :; \
154 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
155 stamp-gc-h: config.status
156 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
157 echo timestamp > stamp-gc-h
159 libglib_1_3_la_LIBADD = @ICONV_LIBS@
161 libglib_1_3_la_LDFLAGS = \
162 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
165 noinst_PROGRAMS = testglib testgdate testgdateparser
166 testglib_LDADD = libglib-1.3.la
167 testgdate_LDADD = libglib-1.3.la
168 testgdateparser_LDADD = libglib-1.3.la
170 m4datadir = $(datadir)/aclocal
171 m4data_DATA = glib-2.0.m4
173 pkgconfigdir = $(libdir)/pkgconfig
174 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
176 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
177 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
179 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
180 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
182 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
183 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
185 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
186 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
188 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
189 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
191 .PHONY: files release sanity snapshot
194 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
200 cd docs && make glib.html
204 ./sanity_check $(VERSION)
207 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
210 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
212 dist-hook: $(BUILT_EXTRA_DIST)
213 files='$(BUILT_EXTRA_DIST)'; \
214 for f in $$files; do \
215 if test -f $$f; then d=.; else d=$(srcdir); fi; \
216 cp $$d/$$f $(distdir) || exit 1; done