1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . gobject gmodule gthread docs tests build
7 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
22 glibconfig.h.win32.in \
25 gspawn-win32-helper.c \
35 # These may be in the builddir too
44 lib_LTLIBRARIES = libglib-1.3.la
46 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 = \
141 configexecincludedir = $(libdir)/glib-2.0/include
142 #configexecinclude_DATA = glibconfig.h
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
150 CONFIGURE_DEPENDENCIES = acglib.m4
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
160 libglib_1_3_la_LIBADD = @ICONV_LIBS@
162 libglib_1_3_la_LDFLAGS = \
163 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
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
172 m4datadir = $(datadir)/aclocal
173 m4data_DATA = glib-2.0.m4
175 pkgconfigdir = $(libdir)/pkgconfig
176 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
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
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
184 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
185 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
187 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
188 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
190 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
191 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
193 .PHONY: files release sanity snapshot
196 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
202 cd docs && make glib.html
206 ./sanity_check $(VERSION)
209 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
212 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
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