Makefile.am 5.26 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

Havoc Pennington's avatar
Havoc Pennington committed
5
SUBDIRS = . m4macros 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@ \
Owen Taylor's avatar
Owen Taylor committed
8
	-DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
9

Owen Taylor's avatar
Owen Taylor committed
10 11
EXTRA_DIST = 			\
	ChangeLog.pre-1-2	\
12
	glib.spec.in		\
Tim Janik's avatar
Tim Janik committed
13
	NEWS.pre-1-3		\
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
# These may be in the builddir too
32
BUILT_EXTRA_DIST = 		\
33 34 35 36 37 38 39
	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
	gmem.c			\
	gmessages.c		\
	gnode.c			\
63
	gpattern.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
64
	gprimes.c		\
65
	gqsort.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
66 67 68 69
	gqueue.c		\
	grel.c			\
	grand.c			\
	gscanner.c		\
Havoc Pennington's avatar
Havoc Pennington committed
70
	gshell.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
71 72 73 74 75 76 77 78 79
	gslist.c		\
	gstrfuncs.c		\
	gstring.c		\
	gthread.c       	\
	gthreadpool.c   	\
	gtimer.c		\
	gtree.c			\
	guniprop.c		\
	gutf8.c			\
80 81
	gunibreak.h		\
	gunibreak.c		\
Owen Taylor's avatar
Fix  
Owen Taylor committed
82 83 84
	gunichartables.h	\
	gunidecomp.h		\
	gunidecomp.c		\
85 86
	gutils.c

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

94 95
glibincludedir=$(includedir)/glib-2.0
glibinclude_HEADERS =   \
96 97 98 99 100 101 102 103 104
	galloca.h	\
	garray.h	\
	gasyncqueue.h	\
	gbacktrace.h	\
	gcache.h	\
	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
	gmem.h		\
	gmessages.h	\
	gnode.h		\
119
	gpattern.h	\
120
	gprimes.h	\
121
	gqsort.h	\
122 123 124 125 126
	gquark.h	\
	gqueue.h	\
	grand.h		\
	grel.h		\
	gscanner.h	\
Havoc Pennington's avatar
Havoc Pennington committed
127
	gshell.h	\
128
	gslist.h	\
Havoc Pennington's avatar
Havoc Pennington committed
129
	gspawn.h	\
130 131 132 133 134 135 136 137
	gstrfuncs.h	\
	gstring.h	\
	gthread.h	\
	gthreadpool.h	\
	gtimer.h	\
	gtree.h		\
	gtypes.h	\
	gunicode.h	\
138 139
	gutils.h	\
	gwin32.h
Owen Taylor's avatar
Owen Taylor committed
140

141
configexecincludedir = $(libdir)/glib-2.0/include
142 143 144 145 146 147 148
#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
149

150
CONFIGURE_DEPENDENCIES = acglib.m4
151

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

160 161 162 163 164 165 166 167 168 169 170
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
171

172
libglib_1_3_la_LDFLAGS = \
173
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
174 175 176 177 178 179 180 181 182 183
	-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)
184 185 186
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
187
if ENABLE_TIMELOOP
188
timeloop_LDADD = libglib-1.3.la
189
endif
Owen Taylor's avatar
Owen Taylor committed
190

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

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

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

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

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

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

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

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

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

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

sanity:
	./sanity_check $(VERSION)

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

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

234
dist-hook: $(BUILT_EXTRA_DIST)
235
	cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
236
	files='$(BUILT_EXTRA_DIST) INSTALL README'; \
237 238
	for f in $$files; do \
	  if test -f $$f; then d=.; else d=$(srcdir); fi; \
239
	  rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done