Makefile.am 4.59 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 8 9
bin_SCRIPTS=glib-config-2.0
BUILT_SOURCES=glib-config-2.0
glib-config-2.0: glib-config-2.0.in
Owen Taylor's avatar
Owen Taylor committed
10

11
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
12

Owen Taylor's avatar
Owen Taylor committed
13 14
EXTRA_DIST = 			\
	ChangeLog.pre-1-2	\
15
	glib-2.0.m4		\
16
	glib.spec.in		\
17 18 19
	acglib.m4		\
	sanity_check		\
	README.win32		\
Owen Taylor's avatar
Owen Taylor committed
20
	TODO.xml		\
21
	glib.def		\
22
	makefile.msc.in		\
23
	makefile.mingw.in	\
24
	giowin32.c		\
25
	glibconfig.h.win32.in	\
Tor Lillqvist's avatar
Tor Lillqvist committed
26
	gwin32.c		\
27
	gspawn-win32.c		\
28
	config.h.win32.in	\
29
	build-dll		\
30 31 32 33 34
	glib.rc.in		\
	glib-2.0.pc.in 		\
	gobject-2.0.pc.in 	\
	gmodule-2.0.pc.in	\
	gthread-2.0.pc.in
35

36 37 38 39 40 41 42 43 44
# These may be in the builddir too
BUILT_EXTRA_DIST = \
	makefile.msc		\
	makefile.mingw		\
	glibconfig.h.win32	\
	config.h.win32		\
	glib.rc			\
	glib.spec

45
lib_LTLIBRARIES = libglib-1.3.la
Owen Taylor's avatar
Owen Taylor committed
46

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

## If we decide to link in 'alloca.c', this is how to do it
#libglib_1_3_la_LIBADD = @ALLOCA@
Owen Taylor's avatar
Owen Taylor committed
91

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

137
configexecincludedir = $(libdir)/glib-2.0/include
138 139 140 141 142 143 144
#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
145

146
CONFIGURE_DEPENDENCIES = acglib.m4
147

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

156 157
libglib_1_3_la_LIBADD = @ICONV_LIBS@

158
libglib_1_3_la_LDFLAGS = \
159
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
160
	-export-dynamic
Owen Taylor's avatar
Owen Taylor committed
161

162
noinst_PROGRAMS = testglib testgdate testgdateparser
163 164 165
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
Owen Taylor's avatar
Owen Taylor committed
166 167

m4datadir = $(datadir)/aclocal
168
m4data_DATA = glib-2.0.m4
Owen Taylor's avatar
Owen Taylor committed
169

170
pkgconfigdir = $(libdir)/pkgconfig
Havoc Pennington's avatar
Havoc Pennington committed
171 172
pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc

173
glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
174 175
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

176
config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
177 178
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

179
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
180 181
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

182
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
183 184
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

185 186 187
glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

188
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
189 190 191 192 193 194 195

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

release:
196 197 198 199 200 201 202 203
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
updated  
Owen Taylor committed
204 205 206 207
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

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

209 210 211 212 213
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