1 ## Process this file with automake to produce Makefile.in
6 SUBDIRS = . gmodule gthread docs tests
8 configincludedir = $(pkglibdir)/include
10 bin_SCRIPTS=glib-config
11 BUILT_SOURCES=glib-config
12 glib-config: glib-config.in
14 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
27 glibconfig.h.win32.in \
35 lib_LTLIBRARIES = libglib.la
37 libglib_la_SOURCES = \
64 glibincludedir=$(includedir)/glib-1.2
65 glibinclude_HEADERS = \
68 configinclude_DATA = \
71 CONFIGURE_DEPENDENCIES = acglib.m4
73 BUILT_SOURCES += stamp-gc-h #note: not glibconfig.h
74 glibconfig.h: stamp-gc-h
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) \
85 noinst_PROGRAMS = testglib testgdate testgdateparser
86 testglib_LDADD = libglib.la
87 testgdate_LDADD = libglib.la
88 testgdateparser_LDADD = libglib.la
90 m4datadir = $(datadir)/aclocal
93 pkgconfigdir = $(libdir)/pkgconfig
94 pkgconfig_DATA = glib.pc gmodule.pc gthread.pc
96 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
97 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
99 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
100 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
102 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
103 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
105 .PHONY: files release sanity snapshot
108 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
114 cd docs && make glib.html
118 ./sanity_check $(VERSION)
121 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
124 if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \
125 CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
127 $(SHELL) config.status \
128 && cp INSTALL README $(distdir) ; \
130 && cp glib.spec $(distdir)