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