New File implementing an asynchronous queue to be used for asynchronous
[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 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.in            \
16         acglib.m4               \
17         sanity_check            \
18         README.win32            \
19         glib.def                \
20         makefile.msc            \
21         makefile.msc.in         \
22         makefile.cygwin         \
23         makefile.cygwin.in      \
24         giowin32.c              \
25         glibconfig.h.win32      \
26         glibconfig.h.win32.in   \
27         gwin32.c                \
28         config.h.win32          \
29         config.h.win32.in       \
30         build-dll               \
31         glib.rc                 \
32         glib.rc.in
33
34 lib_LTLIBRARIES = libglib.la
35
36 libglib_la_SOURCES = \
37         garray.c        \
38         gasyncqueue.c   \
39         gcache.c        \
40         gcompletion.c   \
41         gdataset.c      \
42         gdate.c         \
43         gerror.c        \
44         ghash.c         \
45         ghook.c         \
46         giochannel.c    \
47         giounix.c       \
48         glist.c         \
49         gmain.c         \
50         gmem.c          \
51         gmessages.c     \
52         gnode.c         \
53         gprimes.c       \
54         gqueue.c        \
55         grel.c          \
56         grand.c         \
57         gscanner.c      \
58         gslist.c        \
59         gstrfuncs.c     \
60         gstring.c       \
61         gthread.c       \
62         gthreadpool.c   \
63         gtimer.c        \
64         gtree.c         \
65         gutils.c
66
67 include_HEADERS = \
68         glib.h
69
70 configexecincludedir = $(pkglibdir)/include
71 #configexecinclude_DATA = glibconfig.h
72
73 install-exec-local: glibconfig.h
74         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
75         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
76         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
77         else $(INSTALL_DATA) glibconfig.h $$file; fi
78
79 configure: configure.in acglib.m4               
80
81 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
82 glibconfig.h: stamp-gc-h
83         @if test -f glibconfig.h; then :; \
84         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
85 stamp-gc-h: config.status
86         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
87         echo timestamp > stamp-gc-h
88
89 libglib_la_LDFLAGS = \
90         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
91         -release $(LT_RELEASE) \
92         -export-dynamic
93
94 noinst_PROGRAMS = testglib testgdate testgdateparser
95 testglib_LDADD = libglib.la
96 testgdate_LDADD = libglib.la
97 testgdateparser_LDADD = libglib.la
98
99 m4datadir = $(datadir)/aclocal
100 m4data_DATA = glib.m4
101
102 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
103         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
104
105 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
106         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
107
108 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/makefile.msc.in
109         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
110
111 makefile.cygwin: $(top_builddir)/config.status $(top_srcdir)/makefile.cygwin.in
112         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
113
114 glib.rc: $(top_builddir)/config.status $(top_srcdir)/glib.rc.in
115         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
116
117 .PHONY: files release sanity snapshot
118
119 files:
120         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
121           echo $$p; \
122         done
123
124 release:
125         rm -rf .deps */.deps
126         cd docs && make glib.html
127         $(MAKE) distcheck
128
129 sanity:
130         ./sanity_check $(VERSION)
131
132 snapshot:
133         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
134
135 dist-hook:
136         cp glib.spec $(distdir)