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