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@
25 lib_LTLIBRARIES = libglib.la
27 libglib_la_SOURCES = \
59 configexecincludedir = $(pkglibdir)/include
60 #configexecinclude_DATA = glibconfig.h
62 install-exec-local: glibconfig.h
63 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
64 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
65 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
66 else $(INSTALL_DATA) glibconfig.h $$file; fi
68 configure: configure.in acglib.m4
70 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
71 glibconfig.h: stamp-gc-h
72 @if test -f glibconfig.h; then :; \
73 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
74 stamp-gc-h: config.status
75 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
76 echo timestamp > stamp-gc-h
78 libglib_la_LDFLAGS = \
79 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
80 -release $(LT_RELEASE)
82 noinst_PROGRAMS = testglib testgdate testgdateparser
83 testglib_LDADD = libglib.la
84 testgdate_LDADD = libglib.la
85 testgdateparser_LDADD = libglib.la
87 m4datadir = $(datadir)/aclocal
90 .PHONY: files release sanity snapshot
93 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
99 cd docs && make glib.html
103 ./sanity_check $(VERSION)
106 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
109 cp glib.spec $(distdir)