Makefile.am 5.16 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2
## Process this file with automake to produce Makefile.in

3 4
AUTOMAKE_OPTIONS = 1.4

Martin Baulig's avatar
Martin Baulig committed
5
SUBDIRS = . gobject gmodule gthread docs tests build
Tim Janik's avatar
Tim Janik committed
6

7
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
8
	-DG_DISABLE_COMPAT_H -DGLIB_COMPILATION
9

Owen Taylor's avatar
Owen Taylor committed
10 11
EXTRA_DIST = 			\
	ChangeLog.pre-1-2	\
12
	glib-2.0.m4		\
13
	glib.spec.in		\
14 15 16
	acglib.m4		\
	sanity_check		\
	README.win32		\
Owen Taylor's avatar
Owen Taylor committed
17
	TODO.xml		\
18
	glib.def		\
19
	makefile.msc.in		\
20
	makefile.mingw.in	\
21 22
	glibconfig.h.win32.in	\
	config.h.win32.in	\
23
	build-dll		\
24 25 26 27
	glib.rc.in		\
	glib-2.0.pc.in 		\
	gobject-2.0.pc.in 	\
	gmodule-2.0.pc.in	\
28 29
	gthread-2.0.pc.in	\
	gen-unicode-tables.pl
30

31 32 33 34 35 36 37 38 39
# These may be in the builddir too
BUILT_EXTRA_DIST = \
	makefile.msc		\
	makefile.mingw		\
	glibconfig.h.win32	\
	config.h.win32		\
	glib.rc			\
	glib.spec

40
lib_LTLIBRARIES = libglib-1.3.la
Owen Taylor's avatar
Owen Taylor committed
41

42
libglib_1_3_la_SOURCES = 	\
Owen Taylor's avatar
Fix  
Owen Taylor committed
43 44
	garray.c		\
	gasyncqueue.c		\
Havoc Pennington's avatar
Havoc Pennington committed
45
	gbacktrace.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
46 47
	gcache.c		\
	gcompletion.c		\
48
	gconvert.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
49 50 51
	gdataset.c		\
	gdate.c         	\
	gerror.c		\
Havoc Pennington's avatar
Havoc Pennington committed
52
	gfileutils.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
53 54 55
	ghash.c			\
	ghook.c			\
	giochannel.c    	\
56
	glibintl.h		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
57 58
	glist.c			\
	gmain.c         	\
59
	gmarkup.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
60 61 62 63
	gmem.c			\
	gmessages.c		\
	gnode.c			\
	gprimes.c		\
64
	gqsort.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
65 66 67 68
	gqueue.c		\
	grel.c			\
	grand.c			\
	gscanner.c		\
Havoc Pennington's avatar
Havoc Pennington committed
69
	gshell.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
70 71 72 73 74 75 76 77 78
	gslist.c		\
	gstrfuncs.c		\
	gstring.c		\
	gthread.c       	\
	gthreadpool.c   	\
	gtimer.c		\
	gtree.c			\
	guniprop.c		\
	gutf8.c			\
79 80
	gunibreak.h		\
	gunibreak.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
81 82 83
	gunichartables.h	\
	gunidecomp.h		\
	gunidecomp.c		\
84 85
	gutils.c

86 87 88 89 90 91
EXTRA_libglib_1_3_la_SOURCES = \
	giounix.c	\
	giowin32.c	\
	gspawn.c	\
	gspawn-win32.c	\
	gwin32.c
Owen Taylor's avatar
Owen Taylor committed
92

93 94
glibincludedir=$(includedir)/glib-2.0
glibinclude_HEADERS =   \
95 96 97 98 99
	galloca.h	\
	garray.h	\
	gasyncqueue.h	\
	gbacktrace.h	\
	gcache.h	\
100
	gcompat.h	\
101 102 103 104
	gcompletion.h	\
	gconvert.h	\
	gdataset.h	\
	gdate.h		\
105
	gerror.h	\
Havoc Pennington's avatar
Havoc Pennington committed
106
	gfileutils.h	\
107 108 109
	ghash.h		\
	ghook.h		\
	giochannel.h	\
110 111
	glib.h 		\
	glib-object.h	\
112 113 114
	glist.h		\
	gmacros.h	\
	gmain.h		\
115
	gmarkup.h	\
116 117 118 119
	gmem.h		\
	gmessages.h	\
	gnode.h		\
	gprimes.h	\
120
	gqsort.h	\
121 122 123 124 125
	gquark.h	\
	gqueue.h	\
	grand.h		\
	grel.h		\
	gscanner.h	\
Havoc Pennington's avatar
Havoc Pennington committed
126
	gshell.h	\
127
	gslist.h	\
Havoc Pennington's avatar
Havoc Pennington committed
128
	gspawn.h	\
129 130 131 132 133 134 135 136
	gstrfuncs.h	\
	gstring.h	\
	gthread.h	\
	gthreadpool.h	\
	gtimer.h	\
	gtree.h		\
	gtypes.h	\
	gunicode.h	\
137 138
	gutils.h	\
	gwin32.h
Owen Taylor's avatar
Owen Taylor committed
139

140
configexecincludedir = $(libdir)/glib-2.0/include
141 142 143 144 145 146 147
#configexecinclude_DATA = glibconfig.h

install-exec-local: glibconfig.h
	$(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
	file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
	if test -r $$file && cmp -s glibconfig.h $$file; then :; \
	else $(INSTALL_DATA) glibconfig.h $$file; fi
Owen Taylor's avatar
Owen Taylor committed
148

149
CONFIGURE_DEPENDENCIES = acglib.m4
150

151 152
BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
glibconfig.h: stamp-gc-h
153 154
	@if test -f glibconfig.h; then :; \
	else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
155 156 157 158
stamp-gc-h: config.status
	CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
	echo timestamp > stamp-gc-h

159 160 161 162 163 164 165 166 167 168 169
libglib_1_3_la_LIBADD = @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@
libglib_1_3_la_DEPENDENCIES = @GIO@ @GSPAWN@ @PLATFORMDEP@ 


if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32
# This requires a very new libtool
export_symbols = -export-symbols glib.def
endif
170

171
libglib_1_3_la_LDFLAGS = \
172
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
173 174 175 176 177 178 179 180 181 182
	-export-dynamic $(no_undefined) $(export_symbols)

if OS_WIN32
bin_PROGRAMS = gspawn-win32-helper
gspawn_win32_helper_LDADD = libglib-1.3.la
endif
if ENABLE_TIMELOOP
timeloop = timeloop
endif
noinst_PROGRAMS = testglib testgdate testgdateparser $(timeloop)
183 184 185
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
186
if ENABLE_TIMELOOP
187
timeloop_LDADD = libglib-1.3.la
188
endif
Owen Taylor's avatar
Owen Taylor committed
189
m4datadir = $(datadir)/aclocal
190
m4data_DATA = glib-2.0.m4
Owen Taylor's avatar
Owen Taylor committed
191

192
pkgconfigdir = $(libdir)/pkgconfig
Havoc Pennington's avatar
Havoc Pennington committed
193 194
pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc

195
glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
196 197
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

198
config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
199 200
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

201
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
202 203
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

204
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
205 206
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

207 208 209
glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

210 211 212 213
bin_SCRIPTS=glib-config-2.0
BUILT_SOURCES=glib-config-2.0
glib-config-2.0: glib-config-2.0.in

214
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
215 216 217 218 219 220 221

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

release:
222 223 224 225 226 227 228 229
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
230 231 232 233
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

snapcheck:
	$(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
234

235 236 237 238 239
dist-hook: $(BUILT_EXTRA_DIST)
	files='$(BUILT_EXTRA_DIST)'; \
	for f in $$files; do \
	  if test -f $$f; then d=.; else d=$(srcdir); fi; \
	  cp $$d/$$f $(distdir) || exit 1; done