Use this to specify that 'configure' depends on acglib.m4.
[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            \
23         makefile.msc.in         \
24         makefile.mingw          \
25         makefile.mingw.in       \
26         giowin32.c              \
27         glibconfig.h.win32      \
28         glibconfig.h.win32.in   \
29         gwin32.c                \
30         config.h.win32          \
31         config.h.win32.in       \
32         build-dll               \
33         glib.rc                 \
34         glib.rc.in              \
35         glib-2.0.pc.in          \
36         gobject-2.0.pc.in       \
37         gmodule-2.0.pc.in       \
38         gthread-2.0.pc.in
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         giounix.c               \
57         glist.c                 \
58         gmain.c                 \
59         gmem.c                  \
60         gmessages.c             \
61         gnode.c                 \
62         gprimes.c               \
63         gqueue.c                \
64         grel.c                  \
65         grand.c                 \
66         gscanner.c              \
67         gshell.c                \
68         gslist.c                \
69         gspawn.c                \
70         gstrfuncs.c             \
71         gstring.c               \
72         gthread.c               \
73         gthreadpool.c           \
74         gtimer.c                \
75         gtree.c                 \
76         guniprop.c              \
77         gutf8.c                 \
78         gunichartables.h        \
79         gunidecomp.h            \
80         gunidecomp.c            \
81         gutils.c                \
82         @ALLOCA@
83
84 glibincludedir=$(includedir)/glib-2.0
85 glibinclude_HEADERS =   \
86         gerror.h        \
87         gfileutils.h    \
88         glib.h          \
89         glib-object.h   \
90         gshell.h        \
91         gspawn.h        \
92         gunicode.h
93
94 configexecincludedir = $(libdir)/glib-2.0/include
95 #configexecinclude_DATA = glibconfig.h
96
97 install-exec-local: glibconfig.h
98         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
99         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
100         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
101         else $(INSTALL_DATA) glibconfig.h $$file; fi
102
103 CONFIGURE_DEPENDENCIES = acglib.m4
104
105 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
106 glibconfig.h: stamp-gc-h
107         @if test -f glibconfig.h; then :; \
108         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
109 stamp-gc-h: config.status
110         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
111         echo timestamp > stamp-gc-h
112
113 libglib_1_3_la_LDFLAGS = \
114         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
115         -export-dynamic
116
117 noinst_PROGRAMS = testglib testgdate testgdateparser
118 testglib_LDADD = libglib-1.3.la
119 testgdate_LDADD = libglib-1.3.la
120 testgdateparser_LDADD = libglib-1.3.la
121
122 m4datadir = $(datadir)/aclocal
123 m4data_DATA = glib-2.0.m4
124
125 pkgconfigdir = $(libdir)/pkgconfig
126 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
127
128 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
129         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
130
131 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
132         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
133
134 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
135         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
136
137 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
138         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
139
140 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
141         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
142
143 .PHONY: files release sanity snapshot
144
145 files:
146         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
147           echo $$p; \
148         done
149
150 release:
151         rm -rf .deps */.deps
152         cd docs && make glib.html
153         $(MAKE) distcheck
154
155 sanity:
156         ./sanity_check $(VERSION)
157
158 snapshot:
159         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
160
161 snapcheck:
162         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
163
164 dist-hook:
165         cp glib.spec $(distdir)