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@
29 lib_LTLIBRARIES = libglib.la
31 libglib_la_SOURCES = \
63 configexecincludedir = $(pkglibdir)/include
64 #configexecinclude_DATA = glibconfig.h
66 install-exec-local: glibconfig.h
67 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
68 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
69 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
70 else $(INSTALL_DATA) glibconfig.h $$file; fi
72 configure: configure.in acglib.m4
74 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
75 glibconfig.h: stamp-gc-h
76 @if test -f glibconfig.h; then :; \
77 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
78 stamp-gc-h: config.status
79 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
80 echo timestamp > stamp-gc-h
82 libglib_la_LDFLAGS = \
83 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
84 -release $(LT_RELEASE) \
87 noinst_PROGRAMS = testglib testgdate testgdateparser
88 testglib_LDADD = libglib.la
89 testgdate_LDADD = libglib.la
90 testgdateparser_LDADD = libglib.la
92 m4datadir = $(datadir)/aclocal
95 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
96 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
98 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
99 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
101 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
102 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
104 makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/makefile.cygwin.in
105 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
107 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
108 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
110 .PHONY: files release sanity snapshot
113 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
119 cd docs && make glib.html
123 ./sanity_check $(VERSION)
126 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
129 cp glib.spec $(distdir)