fixed up sys/poll.h and sys/types.h inclusions.
[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 gthread 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         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                 glist.c         \
40                 gmain.c         \
41                 giochannel.c    \
42                 giounix.c       \
43                 gmem.c          \
44                 gmessages.c     \
45                 gnode.c         \
46                 gprimes.c       \
47                 gslist.c        \
48                 gtimer.c        \
49                 gtree.c         \
50                 grel.c          \
51                 gstring.c       \
52                 gstrfuncs.c     \
53                 gscanner.c      \
54                 gutils.c        \
55                 gmutex.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) -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"`