Add gpattern.o to objects.
[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 = . m4macros gobject gmodule gthread docs tests build
6
7 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
8         -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
9
10 EXTRA_DIST =                    \
11         ChangeLog.pre-1-2       \
12         glib.spec.in            \
13         NEWS.pre-1-3            \
14         acglib.m4               \
15         sanity_check            \
16         README.win32            \
17         TODO.xml                \
18         glib.def                \
19         makefile.msc.in         \
20         makefile.mingw.in       \
21         glibconfig.h.win32.in   \
22         config.h.win32.in       \
23         build-dll               \
24         glib.rc.in              \
25         glib-2.0.pc.in          \
26         gobject-2.0.pc.in       \
27         gmodule-2.0.pc.in       \
28         gthread-2.0.pc.in       \
29         gen-unicode-tables.pl
30
31 # These may be in the builddir too
32 BUILT_EXTRA_DIST =              \
33         makefile.msc            \
34         makefile.mingw          \
35         glibconfig.h.win32      \
36         config.h.win32          \
37         glib.rc                 \
38         glib.spec
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         glibintl.h              \
57         glist.c                 \
58         gmain.c                 \
59         gmarkup.c               \
60         gmem.c                  \
61         gmessages.c             \
62         gnode.c                 \
63         gpattern.c              \
64         gprimes.c               \
65         gqsort.c                \
66         gqueue.c                \
67         grel.c                  \
68         grand.c                 \
69         gscanner.c              \
70         gshell.c                \
71         gslist.c                \
72         gstrfuncs.c             \
73         gstring.c               \
74         gthread.c               \
75         gthreadpool.c           \
76         gtimer.c                \
77         gtree.c                 \
78         guniprop.c              \
79         gutf8.c                 \
80         gunibreak.h             \
81         gunibreak.c             \
82         gunichartables.h        \
83         gunidecomp.h            \
84         gunidecomp.c            \
85         gutils.c
86
87 EXTRA_libglib_1_3_la_SOURCES = \
88         giounix.c       \
89         giowin32.c      \
90         gspawn.c        \
91         gspawn-win32.c  \
92         gwin32.c
93
94 glibincludedir=$(includedir)/glib-2.0
95 glibinclude_HEADERS =   \
96         galloca.h       \
97         garray.h        \
98         gasyncqueue.h   \
99         gbacktrace.h    \
100         gcache.h        \
101         gcompletion.h   \
102         gconvert.h      \
103         gdataset.h      \
104         gdate.h         \
105         gerror.h        \
106         gfileutils.h    \
107         ghash.h         \
108         ghook.h         \
109         giochannel.h    \
110         glib.h          \
111         glib-object.h   \
112         glist.h         \
113         gmacros.h       \
114         gmain.h         \
115         gmarkup.h       \
116         gmem.h          \
117         gmessages.h     \
118         gnode.h         \
119         gpattern.h      \
120         gprimes.h       \
121         gqsort.h        \
122         gquark.h        \
123         gqueue.h        \
124         grand.h         \
125         grel.h          \
126         gscanner.h      \
127         gshell.h        \
128         gslist.h        \
129         gspawn.h        \
130         gstrfuncs.h     \
131         gstring.h       \
132         gthread.h       \
133         gthreadpool.h   \
134         gtimer.h        \
135         gtree.h         \
136         gtypes.h        \
137         gunicode.h      \
138         gutils.h        \
139         gwin32.h
140
141 configexecincludedir = $(libdir)/glib-2.0/include
142 #configexecinclude_DATA = glibconfig.h
143
144 install-exec-local: glibconfig.h
145         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
146         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
147         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
148         else $(INSTALL_DATA) glibconfig.h $$file; fi
149
150 CONFIGURE_DEPENDENCIES = acglib.m4
151
152 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
153 glibconfig.h: stamp-gc-h
154         @if test -f glibconfig.h; then :; \
155         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
156 stamp-gc-h: config.status
157         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
158         echo timestamp > stamp-gc-h
159
160 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
161 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@ 
162
163
164 if PLATFORM_WIN32
165 no_undefined = -no-undefined
166 endif
167 if OS_WIN32
168 # This requires a very new libtool
169 export_symbols = -export-symbols glib.def
170 endif
171
172 libglib_1_3_la_LDFLAGS = \
173         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
174         -export-dynamic $(no_undefined) $(export_symbols)
175
176 if OS_WIN32
177 bin_PROGRAMS = gspawn-win32-helper
178 gspawn_win32_helper_LDADD = libglib-1.3.la
179 endif
180 if ENABLE_TIMELOOP
181 timeloop = timeloop
182 endif
183 noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
184 testglib_LDADD = libglib-1.3.la
185 testgdate_LDADD = libglib-1.3.la
186 testgdateparser_LDADD = libglib-1.3.la
187 if ENABLE_TIMELOOP
188 timeloop_LDADD = libglib-1.3.la
189 endif
190
191 pkgconfigdir = $(libdir)/pkgconfig
192 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
193
194 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
195         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
196
197 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
198         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
199
200 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
201         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
202
203 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
204         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
205
206 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
207         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
208
209 bin_SCRIPTS=glib-config-2.0
210 BUILT_SOURCES=glib-config-2.0
211 glib-config-2.0: glib-config-2.0.in
212
213 .PHONY: files release sanity snapshot
214
215 files:
216         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
217           echo $$p; \
218         done
219
220 release:
221         rm -rf .deps */.deps
222         cd docs && make glib.html
223         $(MAKE) distcheck
224
225 sanity:
226         ./sanity_check $(VERSION)
227
228 snapshot:
229         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
230
231 snapcheck:
232         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
233
234 dist-hook: $(BUILT_EXTRA_DIST)
235         cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
236         files='$(BUILT_EXTRA_DIST) INSTALL README'; \
237         for f in $$files; do \
238           if test -f $$f; then d=.; else d=$(srcdir); fi; \
239           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done