Merge main loop into head. This probably breaks Win32, until
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # build . first, then SUBDIRS
4 SUBDIRS = gmodule docs
5 all-recursive-am: all-am
6 # alpha `automake' supports this better
7 #SUBDIRS = . gmodule docs
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         sanity_check    \
21         README.win32    \
22         glib.def        \
23         makefile.lcc    \
24         makefile.msc    \
25         glibconfig.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                 glist.c         \
39                 gmain.c         \
40                 giochannel.c    \
41                 giounix.c       \
42                 gmem.c          \
43                 gmessages.c     \
44                 gnode.c         \
45                 gprimes.c       \
46                 gslist.c        \
47                 gtimer.c        \
48                 gtree.c         \
49                 grel.c          \
50                 gstring.c       \
51                 gstrfuncs.c     \
52                 gscanner.c      \
53                 gutils.c
54
55 include_HEADERS = \
56                 glib.h
57
58 configinclude_DATA = \
59                 glibconfig.h
60
61 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
62 glibconfig.h: stamp-gc-h
63         @:
64 stamp-gc-h: config.status
65         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
66         echo timestamp > stamp-gc-h
67
68 libglib_la_LDFLAGS = \
69         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
70
71 noinst_PROGRAMS = testglib
72 testglib_LDADD = libglib.la
73
74 m4datadir = $(datadir)/aclocal
75 m4data_DATA = glib.m4
76
77 .PHONY: files release sanity snapshot
78
79 files:
80         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
81           echo $$p; \
82         done
83
84 release:
85         rm -rf .deps */.deps
86         cd docs && make glib.html
87         $(MAKE) distcheck
88
89 sanity:
90         ./sanity_check $(VERSION)
91
92 snapshot:
93         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`