summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 829a7c793489c7b1ab525aff551ff282ca0c0a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
## Process this file with automake to produce Makefile.in

SUBDIRS = gmodule docs

configincludedir = $(pkglibdir)/include

bin_SCRIPTS=glib-config
BUILT_SOURCES=glib-config
glib-config: glib-config.in

DEFS += -DG_LOG_DOMAIN=g_log_domain_glib

EXTRA_DIST =			\
		glib.m4		\
		glib.spec	\
		sanity_check

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

lib_LTLIBRARIES = libglib.la

libglib_la_SOURCES = \
		garray.c	\
		gcache.c	\
		gcompletion.c	\
		gdataset.c	\
		gerror.c	\
		ghash.c		\
		ghook.c		\
		glist.c		\
		gmem.c		\
		gmessages.c	\
		gnode.c		\
		gprimes.c	\
		gslist.c	\
		gtimer.c	\
		gtree.c		\
		grel.c		\
		gstring.c	\
		gstrfuncs.c	\
		gscanner.c	\
		gutils.c

include_HEADERS = \
		glib.h

configinclude_DATA = \
		glibconfig.h

libglib_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
INCLUDES = -I$(top_srcdir)

noinst_PROGRAMS = testglib
testglib_LDADD = libglib.la

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

.PHONY: files release sanity snapshot

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

release:
	rm -rf .deps */.deps
	cd docs && make glib.html
	$(MAKE) distcheck

sanity:
	./sanity_check $(VERSION)

snapshot:
	$(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`