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