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