Fixes for #58195, based on some ideas from Hidetosh Tajima.
[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 endif
23
24 libglib_1_3_la_SOURCES =        \
25         garray.c                \
26         gasyncqueue.c           \
27         gbacktrace.c            \
28         gbsearcharray.c         \
29         gbsearcharray.h         \
30         gcache.c                \
31         gcompletion.c           \
32         gconvert.c              \
33         gdataset.c              \
34         gdate.c                 \
35         gerror.c                \
36         gfileutils.c            \
37         ghash.c                 \
38         ghook.c                 \
39         giochannel.c            \
40         glibintl.h              \
41         glist.c                 \
42         gmain.c                 \
43         gmarkup.c               \
44         gmem.c                  \
45         gmessages.c             \
46         gnode.c                 \
47         gpattern.c              \
48         gprimes.c               \
49         gqsort.c                \
50         gqueue.c                \
51         grel.c                  \
52         grand.c                 \
53         gscanner.c              \
54         gshell.c                \
55         gslist.c                \
56         gstrfuncs.c             \
57         gstring.c               \
58         gthread.c               \
59         gthreadpool.c           \
60         gtimer.c                \
61         gtree.c                 \
62         guniprop.c              \
63         gutf8.c                 \
64         gunibreak.h             \
65         gunibreak.c             \
66         gunichartables.h        \
67         gunicollate.c           \
68         gunicomp.h              \
69         gunidecomp.h            \
70         gunidecomp.c            \
71         gutils.c
72
73 EXTRA_libglib_1_3_la_SOURCES = \
74         giounix.c       \
75         giowin32.c      \
76         gspawn.c        \
77         gspawn-win32.c  \
78         gwin32.c
79
80 glibincludedir=$(includedir)/glib-2.0
81 glibinclude_HEADERS =   \
82         glib-object.h   \
83         glib.h
84
85 glibsubincludedir=$(includedir)/glib-2.0/glib
86 glibsubinclude_HEADERS =   \
87         galloca.h       \
88         garray.h        \
89         gasyncqueue.h   \
90         gbacktrace.h    \
91         gcache.h        \
92         gcompletion.h   \
93         gconvert.h      \
94         gdataset.h      \
95         gdate.h         \
96         gerror.h        \
97         gfileutils.h    \
98         ghash.h         \
99         ghook.h         \
100         giochannel.h    \
101         glist.h         \
102         gmacros.h       \
103         gmain.h         \
104         gmarkup.h       \
105         gmem.h          \
106         gmessages.h     \
107         gnode.h         \
108         gpattern.h      \
109         gprimes.h       \
110         gqsort.h        \
111         gquark.h        \
112         gqueue.h        \
113         grand.h         \
114         grel.h          \
115         gscanner.h      \
116         gshell.h        \
117         gslist.h        \
118         gspawn.h        \
119         gstrfuncs.h     \
120         gstring.h       \
121         gthread.h       \
122         gthreadpool.h   \
123         gtimer.h        \
124         gtree.h         \
125         gtypes.h        \
126         gunicode.h      \
127         gutils.h        \
128         gwin32.h
129
130 install-data-local:
131         @if test -f $(glibincludedir)/glist.h ; then                                    \
132           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
133           echo "*** contents of this directory and type 'make install' again." ;        \
134           false ;                                                                       \
135         fi
136
137 if PLATFORM_WIN32
138 no_undefined = -no-undefined
139
140 endif
141 if OS_WIN32
142 # This requires a very new libtool
143 export_symbols = -export-symbols glib.def
144 endif
145
146 libglib_1_3_la_LIBADD = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @ICONV_LIBS@ @G_LIBS_EXTRA@ 
147 libglib_1_3_la_DEPENDENCIES = libcharset/libcharset.la @GIO@ @GSPAWN@ @PLATFORMDEP@ @G_LIB_WIN32_RESOURCE@ @GLIB_DEF@
148
149 libglib_1_3_la_LDFLAGS = \
150         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
151         -export-dynamic $(no_undefined) $(export_symbols)
152
153 if OS_WIN32
154 bin_PROGRAMS = gspawn-win32-helper
155 gspawn_win32_helper_LDADD = libglib-1.3.la
156
157 @G_LIB_WIN32_RESOURCE@ : glib.rc
158         $(top_srcdir)/build/win32/lt-compile-resource glib.rc @G_LIB_WIN32_RESOURCE@
159 endif
160
161 glib-1.3.lib: libglib-1.3.la glib.def
162         lib -name:libglib-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:glib.def -out:$@
163
164 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib/glib.rc.in
165         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
166
167 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.mingw.in
168         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
169
170 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/glib/makefile.msc.in
171         cd $(top_builddir) && CONFIG_FILES=glib/$@ CONFIG_HEADERS= $(SHELL) ./config.status
172
173 dist-hook: $(BUILT_EXTRA_DIST)
174         files='$(BUILT_EXTRA_DIST)'; \
175         for f in $$files; do \
176           if test -f $$f; then d=.; else d=$(srcdir); fi; \
177           cp $$d/$$f $(distdir) || exit 1; done