Makefile.am 4.7 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
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
	giowin32.c		\
22
	glibconfig.h.win32.in	\
Tor Lillqvist's avatar
Tor Lillqvist committed
23
	gwin32.c		\
24
	gspawn-win32.c		\
Tor Lillqvist's avatar
Tor Lillqvist committed
25
	gspawn-win32-helper.c	\
26
	config.h.win32.in	\
27
	build-dll		\
28 29 30 31
	glib.rc.in		\
	glib-2.0.pc.in 		\
	gobject-2.0.pc.in 	\
	gmodule-2.0.pc.in	\
32 33
	gthread-2.0.pc.in	\
	gen-unicode-tables.pl
34

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

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

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

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

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

151
CONFIGURE_DEPENDENCIES = acglib.m4
152

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

161 162
libglib_1_3_la_LIBADD = @ICONV_LIBS@

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

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

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

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

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

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

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

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

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

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

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

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

sanity:
	./sanity_check $(VERSION)

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

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

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