172b44896d3a24c9f4629c3957d7c6db650a6bf5
[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 = . 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.in         \
23         makefile.mingw.in       \
24         giowin32.c              \
25         glibconfig.h.win32.in   \
26         gwin32.c                \
27         gspawn-win32.c          \
28         config.h.win32.in       \
29         build-dll               \
30         glib.rc.in              \
31         glib-2.0.pc.in          \
32         gobject-2.0.pc.in       \
33         gmodule-2.0.pc.in       \
34         gthread-2.0.pc.in
35
36 # These may be in the builddir too
37 BUILT_EXTRA_DIST = \
38         makefile.msc            \
39         makefile.mingw          \
40         glibconfig.h.win32      \
41         config.h.win32          \
42         glib.rc                 \
43         glib.spec
44
45 lib_LTLIBRARIES = libglib-1.3.la
46
47 libglib_1_3_la_SOURCES =        \
48         garray.c                \
49         gasyncqueue.c           \
50         gbacktrace.c            \
51         gcache.c                \
52         gcompletion.c           \
53         gconvert.c              \
54         gdataset.c              \
55         gdate.c                 \
56         gerror.c                \
57         gfileutils.c            \
58         ghash.c                 \
59         ghook.c                 \
60         giochannel.c            \
61         giounix.c               \
62         glist.c                 \
63         gmain.c                 \
64         gmarkup.c               \
65         gmem.c                  \
66         gmessages.c             \
67         gnode.c                 \
68         gprimes.c               \
69         gqsort.c                \
70         gqueue.c                \
71         grel.c                  \
72         grand.c                 \
73         gscanner.c              \
74         gshell.c                \
75         gslist.c                \
76         gspawn.c                \
77         gstrfuncs.c             \
78         gstring.c               \
79         gthread.c               \
80         gthreadpool.c           \
81         gtimer.c                \
82         gtree.c                 \
83         guniprop.c              \
84         gutf8.c                 \
85         gunichartables.h        \
86         gunidecomp.h            \
87         gunidecomp.c            \
88         gutils.c
89
90 ## If we decide to link in 'alloca.c', this is how to do it
91 #libglib_1_3_la_LIBADD = @ALLOCA@
92
93 glibincludedir=$(includedir)/glib-2.0
94 glibinclude_HEADERS =   \
95         galloca.h       \
96         garray.h        \
97         gasyncqueue.h   \
98         gbacktrace.h    \
99         gcache.h        \
100         gcompletion.h   \
101         gconvert.h      \
102         gdataset.h      \
103         gdate.h         \
104         gerror.h        \
105         gfileutils.h    \
106         ghash.h         \
107         ghook.h         \
108         giochannel.h    \
109         glib.h          \
110         glib-object.h   \
111         glist.h         \
112         gmacros.h       \
113         gmain.h         \
114         gmarkup.h       \
115         gmem.h          \
116         gmessages.h     \
117         gnode.h         \
118         gprimes.h       \
119         gqsort.h        \
120         gquark.h        \
121         gqueue.h        \
122         grand.h         \
123         grel.h          \
124         gscanner.h      \
125         gshell.h        \
126         gslist.h        \
127         gspawn.h        \
128         gstrfuncs.h     \
129         gstring.h       \
130         gthread.h       \
131         gthreadpool.h   \
132         gtimer.h        \
133         gtree.h         \
134         gtypes.h        \
135         gunicode.h      \
136         gutils.h        \
137         gwin32.h
138
139 configexecincludedir = $(libdir)/glib-2.0/include
140 #configexecinclude_DATA = glibconfig.h
141
142 install-exec-local: glibconfig.h
143         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
144         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
145         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
146         else $(INSTALL_DATA) glibconfig.h $$file; fi
147
148 CONFIGURE_DEPENDENCIES = acglib.m4
149
150 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
151 glibconfig.h: stamp-gc-h
152         @if test -f glibconfig.h; then :; \
153         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
154 stamp-gc-h: config.status
155         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
156         echo timestamp > stamp-gc-h
157
158 libglib_1_3_la_LIBADD = @ICONV_LIBS@
159
160 libglib_1_3_la_LDFLAGS = \
161         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
162         -export-dynamic
163
164 noinst_PROGRAMS = testglib testgdate testgdateparser
165 testglib_LDADD = libglib-1.3.la
166 testgdate_LDADD = libglib-1.3.la
167 testgdateparser_LDADD = libglib-1.3.la
168
169 m4datadir = $(datadir)/aclocal
170 m4data_DATA = glib-2.0.m4
171
172 pkgconfigdir = $(libdir)/pkgconfig
173 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
174
175 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
176         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
177
178 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
179         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
180
181 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
182         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
183
184 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
185         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
186
187 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
188         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
189
190 .PHONY: files release sanity snapshot
191
192 files:
193         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
194           echo $$p; \
195         done
196
197 release:
198         rm -rf .deps */.deps
199         cd docs && make glib.html
200         $(MAKE) distcheck
201
202 sanity:
203         ./sanity_check $(VERSION)
204
205 snapshot:
206         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
207
208 snapcheck:
209         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
210
211 dist-hook: $(BUILT_EXTRA_DIST)
212         files='$(BUILT_EXTRA_DIST)'; \
213         for f in $$files; do \
214           if test -f $$f; then d=.; else d=$(srcdir); fi; \
215           cp $$d/$$f $(distdir) || exit 1; done