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