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