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@
26 glibconfig.h.win32.in \
34 lib_LTLIBRARIES = libglib.la
36 libglib_la_SOURCES = \
70 configexecincludedir = $(pkglibdir)/include
71 #configexecinclude_DATA = glibconfig.h
73 install-exec-local: glibconfig.h
74 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
75 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
76 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
77 else $(INSTALL_DATA) glibconfig.h $$file; fi
79 configure: configure.in acglib.m4
81 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
82 glibconfig.h: stamp-gc-h
83 @if test -f glibconfig.h; then :; \
84 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
85 stamp-gc-h: config.status
86 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
87 echo timestamp > stamp-gc-h
89 libglib_la_LDFLAGS = \
90 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
91 -release $(LT_RELEASE) \
94 noinst_PROGRAMS = testglib testgdate testgdateparser
95 testglib_LDADD = libglib.la
96 testgdate_LDADD = libglib.la
97 testgdateparser_LDADD = libglib.la
99 m4datadir = $(datadir)/aclocal
100 m4data_DATA = glib.m4
102 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
103 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
105 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
106 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
108 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
109 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
111 makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/makefile.cygwin.in
112 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
114 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
115 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
117 .PHONY: files release sanity snapshot
120 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
126 cd docs && make glib.html
130 ./sanity_check $(VERSION)
133 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
136 cp glib.spec $(distdir)