Use G_N_ELEMENTS rather than a custom macro.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=g_log_domain_glib \
4         @GLIB_DEBUG_FLAGS@ -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         gunicollate.c           \
53         gunidecomp.h            \
54         gunidecomp.c            \
55         gutils.c
56
57 EXTRA_libglib_1_3_la_SOURCES = \
58         giounix.c       \
59         giowin32.c      \
60         gspawn.c        \
61         gspawn-win32.c  \
62         gwin32.c
63
64 glibincludedir=$(includedir)/glib-2.0
65 glibinclude_HEADERS =   \
66         glib-object.h   \
67         glib.h
68
69 glibsubincludedir=$(includedir)/glib-2.0/glib
70 glibsubinclude_HEADERS =   \
71         galloca.h       \
72         garray.h        \
73         gasyncqueue.h   \
74         gbacktrace.h    \
75         gcache.h        \
76         gcompletion.h   \
77         gconvert.h      \
78         gdataset.h      \
79         gdate.h         \
80         gerror.h        \
81         gfileutils.h    \
82         ghash.h         \
83         ghook.h         \
84         giochannel.h    \
85         glist.h         \
86         gmacros.h       \
87         gmain.h         \
88         gmarkup.h       \
89         gmem.h          \
90         gmessages.h     \
91         gnode.h         \
92         gpattern.h      \
93         gprimes.h       \
94         gqsort.h        \
95         gquark.h        \
96         gqueue.h        \
97         grand.h         \
98         grel.h          \
99         gscanner.h      \
100         gshell.h        \
101         gslist.h        \
102         gspawn.h        \
103         gstrfuncs.h     \
104         gstring.h       \
105         gthread.h       \
106         gthreadpool.h   \
107         gtimer.h        \
108         gtree.h         \
109         gtypes.h        \
110         gunicode.h      \
111         gutils.h        \
112         gwin32.h
113
114 install-data-local:
115         @if test -f $(glibincludedir)/glist.h ; then                                    \
116           echo "*** Old headers found in $(glibincludedir). You should remove the" ;    \
117           echo "*** contents of this directory and type 'make install' again." ;        \
118           false ;                                                                       \
119         fi
120
121 libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
122 libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@ 
123
124
125 if PLATFORM_WIN32
126 no_undefined = -no-undefined
127 endif
128 if OS_WIN32
129 # This requires a very new libtool
130 export_symbols = -export-symbols glib.def
131 endif
132
133 libglib_1_3_la_LDFLAGS = \
134         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
135         -export-dynamic $(no_undefined) $(export_symbols)
136
137 if OS_WIN32
138 bin_PROGRAMS = gspawn-win32-helper
139 gspawn_win32_helper_LDADD = libglib-1.3.la
140 endif
141