Makefile.am 1.35 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 17 18 19 20 21 22
EXTRA_DIST = \
	glib.m4		\
	glib.spec	\
	sanity_check	\
	README.win32	\
	glib.def	\
	makefile.lcc	\
	makefile.msc	\
	glibconfig.h.win32

Owen Taylor's avatar
Owen Taylor committed
23

24 25 26
# build . first, then SUBDIRS
all-recursive-am: all-am

27
lib_LTLIBRARIES = libglib.la
Owen Taylor's avatar
Owen Taylor committed
28

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

include_HEADERS = \
		glib.h

configinclude_DATA = \
		glibconfig.h

57 58
libglib_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
Owen Taylor's avatar
Owen Taylor committed
59 60 61
INCLUDES = -I$(top_srcdir)

noinst_PROGRAMS = testglib
62
testglib_LDADD = libglib.la
Owen Taylor's avatar
Owen Taylor committed
63 64 65 66

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

67
.PHONY: files release sanity snapshot
Owen Taylor's avatar
Owen Taylor committed
68 69 70 71 72 73 74

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

release:
75 76 77 78 79 80 81 82
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

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