better ChangeLog Entry
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.4
4
5 SUBDIRS = . gmodule gthread docs tests
6
7 bin_SCRIPTS=glib-config
8 BUILT_SOURCES=glib-config
9 glib-config: glib-config.in
10
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
12
13 EXTRA_DIST = \
14         glib.m4                 \
15         glib.spec.in            \
16         acglib.m4               \
17         sanity_check            \
18         README.win32            \
19         glib.def                \
20         makefile.msc            \
21         makefile.cygwin         \
22         giowin32.c              \
23         glibconfig.h.win32      \
24         gwin32.c                \
25         config.h.win32          \
26         build-dll               \
27         glib.rc
28
29 lib_LTLIBRARIES = libglib.la
30
31 libglib_la_SOURCES = \
32         garray.c        \
33         gcache.c        \
34         gcompletion.c   \
35         gdataset.c      \
36         gdate.c         \
37         gerror.c        \
38         ghash.c         \
39         ghook.c         \
40         giochannel.c    \
41         giounix.c       \
42         glist.c         \
43         gmain.c         \
44         gmem.c          \
45         gmessages.c     \
46         gnode.c         \
47         gprimes.c       \
48         gqueue.c        \
49         grel.c          \
50         grand.c         \
51         gscanner.c      \
52         gslist.c        \
53         gstrfuncs.c     \
54         gstring.c       \
55         gthread.c       \
56         gtimer.c        \
57         gtree.c         \
58         gutils.c
59
60 include_HEADERS = \
61         glib.h
62
63 configexecincludedir = $(pkglibdir)/include
64 #configexecinclude_DATA = glibconfig.h
65
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
71
72 configure: configure.in acglib.m4               
73
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
81
82 libglib_la_LDFLAGS = \
83         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
84         -release $(LT_RELEASE) \
85         -export-dynamic
86
87 noinst_PROGRAMS = testglib testgdate testgdateparser
88 testglib_LDADD = libglib.la
89 testgdate_LDADD = libglib.la
90 testgdateparser_LDADD = libglib.la
91
92 m4datadir = $(datadir)/aclocal
93 m4data_DATA = glib.m4
94
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
97
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
100
101 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
102         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
103
104 makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/makefile.cygwin.in
105         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
106
107 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
108         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
109
110 .PHONY: files release sanity snapshot
111
112 files:
113         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
114           echo $$p; \
115         done
116
117 release:
118         rm -rf .deps */.deps
119         cd docs && make glib.html
120         $(MAKE) distcheck
121
122 sanity:
123         ./sanity_check $(VERSION)
124
125 snapshot:
126         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
127
128 dist-hook:
129         cp glib.spec $(distdir)