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

3
SUBDIRS = gmodule docs
Tim Janik's avatar
Tim Janik committed
4

Owen Taylor's avatar
Owen Taylor committed
5 6 7
configincludedir = $(pkglibdir)/include

bin_SCRIPTS=glib-config
Tim Janik's avatar
Tim Janik committed
8 9
BUILT_SOURCES=glib-config
glib-config: glib-config.in
Owen Taylor's avatar
Owen Taylor committed
10

11 12
DEFS += -DG_LOG_DOMAIN=g_log_domain_glib

13 14 15 16
EXTRA_DIST =			\
		glib.m4		\
		glib.spec	\
		sanity_check
Owen Taylor's avatar
Owen Taylor committed
17

18 19 20
# build . first, then SUBDIRS
all-recursive-am: all-am

21
lib_LTLIBRARIES = libglib.la
Owen Taylor's avatar
Owen Taylor committed
22

23
libglib_la_SOURCES = \
Owen Taylor's avatar
Owen Taylor committed
24 25 26 27 28 29
		garray.c	\
		gcache.c	\
		gcompletion.c	\
		gdataset.c	\
		gerror.c	\
		ghash.c		\
Tim Janik's avatar
Tim Janik committed
30
		ghook.c		\
Owen Taylor's avatar
Owen Taylor committed
31 32 33
		glist.c		\
		gmem.c		\
		gmessages.c	\
Tim Janik's avatar
Tim Janik committed
34
		gnode.c		\
Owen Taylor's avatar
Owen Taylor committed
35 36 37 38
		gprimes.c	\
		gslist.c	\
		gtimer.c	\
		gtree.c		\
39
		grel.c		\
Owen Taylor's avatar
Owen Taylor committed
40
		gstring.c	\
41
		gstrfuncs.c	\
Owen Taylor's avatar
Owen Taylor committed
42 43 44 45 46 47 48 49 50
		gscanner.c	\
		gutils.c

include_HEADERS = \
		glib.h

configinclude_DATA = \
		glibconfig.h

51 52
libglib_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
Owen Taylor's avatar
Owen Taylor committed
53 54 55
INCLUDES = -I$(top_srcdir)

noinst_PROGRAMS = testglib
56
testglib_LDADD = libglib.la
Owen Taylor's avatar
Owen Taylor committed
57 58 59 60

m4datadir = $(datadir)/aclocal
m4data_DATA = glib.m4

61
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
62 63 64 65 66 67 68

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

release:
69 70 71 72 73 74 75 76
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
Owen Taylor's avatar
Owen Taylor committed
77
	$(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`