Version 11, interface, binary age 0.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS=libcharset
4
5 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
6         @GLIB_DEBUG_FLAGS@ -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION 
7
8 EXTRA_DIST =                    \
9         makefile.mingw.in       \
10         makefile.msc.in         \
11         glib.rc.in              \
12         gen-unicode-tables.pl   \
13         glib.def
14
15 # These may be in the builddir too
16 BUILT_EXTRA_DIST =              \
17         makefile.msc            \
18         makefile.mingw          \
19         glib.rc
20
21 lib_LTLIBRARIES = libglib-1.3.la
22
23 if MS_LIB_AVAILABLE
24 noinst_DATA = glib-1.3.lib
25
26 install-ms-lib:
27         $(INSTALL) glib-1.3.lib $(DESTDIR)$(libdir)
28
29 uninstall-ms-lib:
30         -rm $(DESTDIR)$(libdir)/glib-1.3.lib
31 else
32 install-ms-lib:
33 uninstall-ms-lib:
34 endif
35
36 libglib_1_3_la_SOURCES =        \
37         garray.c                \
38         gasyncqueue.c           \
39         gbacktrace.c            \
40         gbsearcharray.c         \
41         gbsearcharray.h         \
42         gcache.c                \
43         gcompletion.c           \
44         gconvert.c              \
45         gdataset.c              \
46         gdate.c                 \
47         gdir.c                  \
48         gerror.c                \
49         gfileutils.c            \
50         ghash.c                 \
51         ghook.c                 \
52         giochannel.c            \
53         glibintl.h              \
54         glist.c                 \
55         gmain.c                 \
56         gmarkup.c               \
57         gmem.c                  \
58         gmessages.c             \
59         gnode.c                 \
60         gpattern.c              \
61         gprimes.c               \
62         gqsort.c                \
63         gqueue.c                \
64         grel.c                  \
65         grand.c                 \
66         gscanner.c              \
67         gshell.c                \
68         gslist.c                \
69         gstrfuncs.c             \
70         gstring.c               \
71         gthread.c               \
72         gthreadpool.c           \
73         gtimer.c                \
74         gtree.c                 \
75         guniprop.c              \
76         gutf8.c                 \
77         gunibreak.h             \
78         gunibreak.c             \
79         gunichartables.h        \
80         gunicollate.c           \
81         gunicomp.h              \
82         gunidecomp.h            \
83         gunidecomp.c            \
84         gutils.c
85
86 EXTRA_libglib_1_3_la_SOURCES = \
87         giounix.c       \
88         giowin32.c      \
89         gspawn.c        \
90         gspawn-win32.c  \
91         gwin32.c
92
93 glibincludedir=$(includedir)/glib-2.0
94 glibinclude_HEADERS =   \
95         glib-object.h   \
96         glib.h
97
98 glibsubincludedir=$(includedir)/glib-2.0/glib
99 glibsubinclude_HEADERS =   \
100         galloca.h       \
101         garray.h        \
102         gasyncqueue.h   \
103         gbacktrace.h    \
104         gcache.h        \
105         gcompletion.h   \
106         gconvert.h      \
107         gdataset.h      \
108         gdate.h         \
109         gdir.h          \
110         gerror.h        \
111         gfileutils.h    \
112         ghash.h         \
113         ghook.h         \
114         giochannel.h    \
115         glist.h         \
116         gmacros.h       \
117         gmain.h         \
118         gmarkup.h       \
119         gmem.h          \
120         gmessages.h     \
121         gnode.h         \
122         gpattern.h      \
123         gprimes.h       \
124         gqsort.h        \
125         gquark.h        \
126         gqueue.h        \
127         grand.h         \
128         grel.h          \
129         gscanner.h      \
130         gshell.h        \
131         gslist.h        \
132         gspawn.h        \
133         gstrfuncs.h     \
134         gstring.h       \
135         gthread.h       \
136         gthreadpool.h   \
137         gtimer.h        \
138         gtree.h         \
139         gtypes.h        \
140         gunicode.h      \
141         gutils.h        \
142         gwin32.h
143
144 install-data-local: install-ms-lib install-libtool-import-lib
145         @if test -f $(glibincludedir)/glist.h ; then                                    \
146           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
147           echo "*** contents of this directory and type 'make install' again." ;        \
148           false ;                                                                       \
149         fi
150
151 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
152
153 if PLATFORM_WIN32
154 no_undefined = -no-undefined
155 endif
156
157 if OS_WIN32
158 # This requires a very new libtool
159 export_symbols = -export-symbols glib.def
160
161 install-libtool-import-lib:
162         $(INSTALL) .libs/libglib-1.3.dll.a $(DESTDIR)$(libdir)
163 uninstall-libtool-import-lib:
164         -rm $(DESTDIR)$(libdir)/libglib-1.3.dll.a
165 else
166 install-libtool-import-lib:
167 uninstall-libtool-import-lib:
168 endif
169
170 libglib_1_3_la_LIBADD = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @ICONV_LIBS@ @G_LIBS_EXTRA@ 
171 libglib_1_3_la_DEPENDENCIES = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @GLIB_DEF@
172
173 libglib_1_3_la_LDFLAGS = \
174         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
175         -export-dynamic $(no_undefined) $(export_symbols)
176
177 if OS_WIN32
178 bin_PROGRAMS = gspawn-win32-helper
179 gspawn_win32_helper_LDADD = libglib-1.3.la
180 gspawn_win32_helper_LDFLAGS = -mwindows
181
182 @G_LIB_WIN32_RESOURCE@ : glib.rc
183         $(top_srcdir)/build/win32/lt-compile-resource glib.rc @G_LIB_WIN32_RESOURCE@
184 endif
185
186 glib-1.3.lib: libglib-1.3.la glib.def
187         lib -name:libglib-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:glib.def -out:$@
188
189 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib/glib.rc.in
190         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
191
192 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.mingw.in
193         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
194
195 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.msc.in
196         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
197
198 dist-hook: $(BUILT_EXTRA_DIST)
199         files='$(BUILT_EXTRA_DIST)'; \
200         for f in $$files; do \
201           if test -f $$f; then d=.; else d=$(srcdir); fi; \
202           cp $$d/$$f $(distdir) || exit 1; done