Added 'make check' tests, based on testglib code.
[platform/upstream/glib.git] / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # build . first, then SUBDIRS
4 SUBDIRS = gmodule gthread docs tests
5 all-recursive-am: all-am
6 # alpha `automake' supports this better
7 #SUBDIRS = . gmodule gthread docs tests
8
9 configincludedir = $(pkglibdir)/include
10
11 bin_SCRIPTS=glib-config
12 BUILT_SOURCES=glib-config
13 glib-config: glib-config.in
14
15 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
16
17 EXTRA_DIST = \
18         glib.m4                 \
19         glib.spec               \
20         acglib.m4               \
21         sanity_check            \
22         README.win32            \
23         glib.def                \
24         makefile.lcc            \
25         makefile.msc            \
26         glibconfig.h.win32
27
28 lib_LTLIBRARIES = libglib.la
29
30 libglib_la_SOURCES = \
31         garray.c        \
32         gcache.c        \
33         gcompletion.c   \
34         gdataset.c      \
35         gdate.c         \
36         gerror.c        \
37         ghash.c         \
38         ghook.c         \
39         giochannel.c    \
40         giounix.c       \
41         glist.c         \
42         gmain.c         \
43         gmem.c          \
44         gmessages.c     \
45         gmutex.c        \
46         gnode.c         \
47         gprimes.c       \
48         grel.c          \
49         gscanner.c      \
50         gslist.c        \
51         gstrfuncs.c     \
52         gstring.c       \
53         gtimer.c        \
54         gtree.c         \
55         gutils.c
56
57 include_HEADERS = \
58         glib.h
59
60 configinclude_DATA = \
61         glibconfig.h
62
63 configure: configure.in acglib.m4               
64
65 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
66 glibconfig.h: stamp-gc-h
67         @:
68 stamp-gc-h: config.status
69         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
70         echo timestamp > stamp-gc-h
71
72 libglib_la_LDFLAGS = \
73         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
74         -release $(LT_RELEASE)
75
76 noinst_PROGRAMS = testglib testgdate testgdateparser
77 testglib_LDADD = libglib.la
78 testgdate_LDADD = libglib.la
79 testgdateparser_LDADD = libglib.la
80
81 m4datadir = $(datadir)/aclocal
82 m4data_DATA = glib.m4
83
84 .PHONY: files release sanity snapshot
85
86 files:
87         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
88           echo $$p; \
89         done
90
91 release:
92         rm -rf .deps */.deps
93         cd docs && make glib.html
94         $(MAKE) distcheck
95
96 sanity:
97         ./sanity_check $(VERSION)
98
99 snapshot:
100         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`