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