1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . gmodule gthread docs tests
7 bin_SCRIPTS=glib-config
8 BUILT_SOURCES=glib-config
9 glib-config: glib-config.in
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
27 lib_LTLIBRARIES = libglib.la
29 libglib_la_SOURCES = \
61 configexecincludedir = $(pkglibdir)/include
62 #configexecinclude_DATA = glibconfig.h
64 install-exec-local: glibconfig.h
65 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
66 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
67 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
68 else $(INSTALL_DATA) glibconfig.h $$file; fi
70 configure: configure.in acglib.m4
72 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
73 glibconfig.h: stamp-gc-h
74 @if test -f glibconfig.h; then :; \
75 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
76 stamp-gc-h: config.status
77 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
78 echo timestamp > stamp-gc-h
80 libglib_la_LDFLAGS = \
81 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
82 -release $(LT_RELEASE)
84 noinst_PROGRAMS = testglib testgdate testgdateparser
85 testglib_LDADD = libglib.la
86 testgdate_LDADD = libglib.la
87 testgdateparser_LDADD = libglib.la
89 m4datadir = $(datadir)/aclocal
92 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
93 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
95 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
96 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
98 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
99 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
101 makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/makefile.cygwin.in
102 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
104 .PHONY: files release sanity snapshot
107 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
113 cd docs && make glib.html
117 ./sanity_check $(VERSION)
120 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
123 cp glib.spec $(distdir)