Makefile.am 4.74 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		\
Tor Lillqvist's avatar
Tor Lillqvist committed
28
	gspawn-win32-helper.c	\
29
	config.h.win32.in	\
30
	build-dll		\
31 32 33 34
	glib.rc.in		\
	glib-2.0.pc.in 		\
	gobject-2.0.pc.in 	\
	gmodule-2.0.pc.in	\
35 36
	gthread-2.0.pc.in	\
	gen-unicode-tables.pl
37

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

47
lib_LTLIBRARIES = libglib-1.3.la
Owen Taylor's avatar
Owen Taylor committed
48

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

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

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

152
CONFIGURE_DEPENDENCIES = acglib.m4
153

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

162 163
libglib_1_3_la_LIBADD = @ICONV_LIBS@

164
libglib_1_3_la_LDFLAGS = \
165
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
166
	-export-dynamic
Owen Taylor's avatar
Owen Taylor committed
167

168
noinst_PROGRAMS = testglib testgdate testgdateparser timeloop
169 170 171
testglib_LDADD = libglib-1.3.la
testgdate_LDADD = libglib-1.3.la
testgdateparser_LDADD = libglib-1.3.la
172
timeloop_LDADD = libglib-1.3.la
Owen Taylor's avatar
Owen Taylor committed
173 174

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

177
pkgconfigdir = $(libdir)/pkgconfig
Havoc Pennington's avatar
Havoc Pennington committed
178 179
pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc

180
glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
181 182
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

183
config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
184 185
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

186
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
187 188
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

189
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/makefile.mingw.in
190 191
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

192 193 194
glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

195
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
196 197 198 199 200 201 202

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

release:
203 204 205 206 207 208 209 210
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
211 212 213 214
	$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`

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

216 217 218 219 220
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