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 \
36 # These may be in the builddir too
45 lib_LTLIBRARIES = libglib-1.3.la
47 libglib_1_3_la_SOURCES = \
88 ## If we decide to link in 'alloca.c', this is how to do it
89 #libglib_1_3_la_LIBADD = @ALLOCA@
91 glibincludedir=$(includedir)/glib-2.0
92 glibinclude_HEADERS = \
135 configexecincludedir = $(libdir)/glib-2.0/include
136 #configexecinclude_DATA = glibconfig.h
138 install-exec-local: glibconfig.h
139 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
140 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
141 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
142 else $(INSTALL_DATA) glibconfig.h $$file; fi
144 CONFIGURE_DEPENDENCIES = acglib.m4
146 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
147 glibconfig.h: stamp-gc-h
148 @if test -f glibconfig.h; then :; \
149 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
150 stamp-gc-h: config.status
151 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
152 echo timestamp > stamp-gc-h
154 libglib_1_3_la_LDFLAGS = \
155 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
158 noinst_PROGRAMS = testglib testgdate testgdateparser
159 testglib_LDADD = libglib-1.3.la
160 testgdate_LDADD = libglib-1.3.la
161 testgdateparser_LDADD = libglib-1.3.la
163 m4datadir = $(datadir)/aclocal
164 m4data_DATA = glib-2.0.m4
166 pkgconfigdir = $(libdir)/pkgconfig
167 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
169 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
170 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
172 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
173 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
175 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
176 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
178 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
179 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
181 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
182 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
184 .PHONY: files release sanity snapshot
187 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
193 cd docs && make glib.html
197 ./sanity_check $(VERSION)
200 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
203 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
205 dist-hook: $(BUILT_EXTRA_DIST)
206 files='$(BUILT_EXTRA_DIST)'; \
207 for f in $$files; do \
208 if test -f $$f; then d=.; else d=$(srcdir); fi; \
209 cp $$d/$$f $(distdir) || exit 1; done