Move glib library into a subdirectory, make all GLib include files include
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
4         -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
5
6 EXTRA_DIST =                    \
7         gen-unicode-tables.pl
8
9 lib_LTLIBRARIES = libglib-1.3.la
10
11 libglib_1_3_la_SOURCES =        \
12         garray.c                \
13         gasyncqueue.c           \
14         gbacktrace.c            \
15         gcache.c                \
16         gcompletion.c           \
17         gconvert.c              \
18         gdataset.c              \
19         gdate.c                 \
20         gerror.c                \
21         gfileutils.c            \
22         ghash.c                 \
23         ghook.c                 \
24         giochannel.c            \
25         glibintl.h              \
26         glist.c                 \
27         gmain.c                 \
28         gmarkup.c               \
29         gmem.c                  \
30         gmessages.c             \
31         gnode.c                 \
32         gpattern.c              \
33         gprimes.c               \
34         gqsort.c                \
35         gqueue.c                \
36         grel.c                  \
37         grand.c                 \
38         gscanner.c              \
39         gshell.c                \
40         gslist.c                \
41         gstrfuncs.c             \
42         gstring.c               \
43         gthread.c               \
44         gthreadpool.c           \
45         gtimer.c                \
46         gtree.c                 \
47         guniprop.c              \
48         gutf8.c                 \
49         gunibreak.h             \
50         gunibreak.c             \
51         gunichartables.h        \
52         gunidecomp.h            \
53         gunidecomp.c            \
54         gutils.c
55
56 EXTRA_libglib_1_3_la_SOURCES = \
57         giounix.c       \
58         giowin32.c      \
59         gspawn.c        \
60         gspawn-win32.c  \
61         gwin32.c
62
63 glibincludedir=$(includedir)/glib-2.0
64 glibinclude_HEADERS =   \
65         glib-object.h   \
66         glib.h
67
68 glibsubincludedir=$(includedir)/glib-2.0/glib
69 glibsubinclude_HEADERS =   \
70         galloca.h       \
71         garray.h        \
72         gasyncqueue.h   \
73         gbacktrace.h    \
74         gcache.h        \
75         gcompletion.h   \
76         gconvert.h      \
77         gdataset.h      \
78         gdate.h         \
79         gerror.h        \
80         gfileutils.h    \
81         ghash.h         \
82         ghook.h         \
83         giochannel.h    \
84         glist.h         \
85         gmacros.h       \
86         gmain.h         \
87         gmarkup.h       \
88         gmem.h          \
89         gmessages.h     \
90         gnode.h         \
91         gpattern.h      \
92         gprimes.h       \
93         gqsort.h        \
94         gquark.h        \
95         gqueue.h        \
96         grand.h         \
97         grel.h          \
98         gscanner.h      \
99         gshell.h        \
100         gslist.h        \
101         gspawn.h        \
102         gstrfuncs.h     \
103         gstring.h       \
104         gthread.h       \
105         gthreadpool.h   \
106         gtimer.h        \
107         gtree.h         \
108         gtypes.h        \
109         gunicode.h      \
110         gutils.h        \
111         gwin32.h
112
113 install-data-local:
114         @if test -f $(glibincludedir)/glist.h ; then                                    \
115           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
116           echo "*** contents of this directory and type 'make install' again." ;        \
117           false ;                                                                       \
118         fi
119
120 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
121 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@ 
122
123
124 if PLATFORM_WIN32
125 no_undefined = -no-undefined
126 endif
127 if OS_WIN32
128 # This requires a very new libtool
129 export_symbols = -export-symbols glib.def
130 endif
131
132 libglib_1_3_la_LDFLAGS = \
133         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
134         -export-dynamic $(no_undefined) $(export_symbols)
135
136 if OS_WIN32
137 bin_PROGRAMS = gspawn-win32-helper
138 gspawn_win32_helper_LDADD = libglib-1.3.la
139 endif
140