Added the new headers to glibinclude_HEADERS.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.4
4
5 SUBDIRS = . gobject gmodule gthread docs tests build
6
7 bin_SCRIPTS=glib-config-2.0
8 BUILT_SOURCES=glib-config-2.0
9 glib-config-2.0: glib-config-2.0.in
10
11 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
12
13 EXTRA_DIST =                    \
14         ChangeLog.pre-1-2       \
15         glib-2.0.m4             \
16         glib.spec.in            \
17         acglib.m4               \
18         sanity_check            \
19         README.win32            \
20         TODO.xml                \
21         glib.def                \
22         makefile.msc            \
23         makefile.msc.in         \
24         makefile.mingw          \
25         makefile.mingw.in       \
26         giowin32.c              \
27         glibconfig.h.win32      \
28         glibconfig.h.win32.in   \
29         gwin32.c                \
30         config.h.win32          \
31         config.h.win32.in       \
32         build-dll               \
33         glib.rc                 \
34         glib.rc.in              \
35         glib-2.0.pc.in          \
36         gobject-2.0.pc.in       \
37         gmodule-2.0.pc.in       \
38         gthread-2.0.pc.in
39
40 lib_LTLIBRARIES = libglib-1.3.la
41
42 libglib_1_3_la_SOURCES =        \
43         garray.c                \
44         gasyncqueue.c           \
45         gbacktrace.c            \
46         gcache.c                \
47         gcompletion.c           \
48         gconvert.c              \
49         gdataset.c              \
50         gdate.c                 \
51         gerror.c                \
52         gfileutils.c            \
53         ghash.c                 \
54         ghook.c                 \
55         giochannel.c            \
56         giounix.c               \
57         glist.c                 \
58         gmain.c                 \
59         gmem.c                  \
60         gmessages.c             \
61         gnode.c                 \
62         gprimes.c               \
63         gqueue.c                \
64         grel.c                  \
65         grand.c                 \
66         gscanner.c              \
67         gshell.c                \
68         gslist.c                \
69         gspawn.c                \
70         gstrfuncs.c             \
71         gstring.c               \
72         gthread.c               \
73         gthreadpool.c           \
74         gtimer.c                \
75         gtree.c                 \
76         guniprop.c              \
77         gutf8.c                 \
78         gunichartables.h        \
79         gunidecomp.h            \
80         gunidecomp.c            \
81         gutils.c                \
82         @ALLOCA@
83
84 glibincludedir=$(includedir)/glib-2.0
85 glibinclude_HEADERS =   \
86         galloca.h       \
87         garray.h        \
88         gasyncqueue.h   \
89         gbacktrace.h    \
90         gcache.h        \
91         gcompletion.h   \
92         gconvert.h      \
93         gdataset.h      \
94         gdate.h         \
95         gerror.h        \
96         gfileutils.h    \
97         ghash.h         \
98         ghook.h         \
99         giochannel.h    \
100         glib.h          \
101         glib-object.h   \
102         glist.h         \
103         gmacros.h       \
104         gmain.h         \
105         gmem.h          \
106         gmessages.h     \
107         gnode.h         \
108         gprimes.h       \
109         gquark.h        \
110         gqueue.h        \
111         grand.h         \
112         grel.h          \
113         gscanner.h      \
114         gshell.h        \
115         gslist.h        \
116         gspawn.h        \
117         gstrfuncs.h     \
118         gstring.h       \
119         gthread.h       \
120         gthreadpool.h   \
121         gtimer.h        \
122         gtree.h         \
123         gtypes.h        \
124         gunicode.h      \
125         gutils.h
126
127 configexecincludedir = $(libdir)/glib-2.0/include
128 #configexecinclude_DATA = glibconfig.h
129
130 install-exec-local: glibconfig.h
131         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
132         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
133         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
134         else $(INSTALL_DATA) glibconfig.h $$file; fi
135
136 CONFIGURE_DEPENDENCIES = acglib.m4
137
138 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
139 glibconfig.h: stamp-gc-h
140         @if test -f glibconfig.h; then :; \
141         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
142 stamp-gc-h: config.status
143         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
144         echo timestamp > stamp-gc-h
145
146 libglib_1_3_la_LDFLAGS = \
147         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
148         -export-dynamic
149
150 noinst_PROGRAMS = testglib testgdate testgdateparser
151 testglib_LDADD = libglib-1.3.la
152 testgdate_LDADD = libglib-1.3.la
153 testgdateparser_LDADD = libglib-1.3.la
154
155 m4datadir = $(datadir)/aclocal
156 m4data_DATA = glib-2.0.m4
157
158 pkgconfigdir = $(libdir)/pkgconfig
159 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
160
161 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
162         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
163
164 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
165         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
166
167 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
168         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
169
170 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
171         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
172
173 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
174         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
175
176 .PHONY: files release sanity snapshot
177
178 files:
179         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
180           echo $$p; \
181         done
182
183 release:
184         rm -rf .deps */.deps
185         cd docs && make glib.html
186         $(MAKE) distcheck
187
188 sanity:
189         ./sanity_check $(VERSION)
190
191 snapshot:
192         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
193
194 snapcheck:
195         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
196
197 dist-hook:
198         cp glib.spec $(distdir)