modified 64bit build error
[sdk/emulator/libs/spice-server.git] / Makefile.am
1 NULL =
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = spice-common server
5
6 if SUPPORT_CLIENT
7 SUBDIRS += client
8 endif
9
10 pkgconfigdir = $(libdir)/pkgconfig
11 pkgconfig_DATA = spice-server.pc
12
13 DISTCHECK_CONFIGURE_FLAGS =                     \
14         --enable-automated-tests                \
15         --enable-opengl                         \
16         --enable-smartcard                      \
17         --with-sasl                             \
18         $(NULL)
19
20 EXTRA_DIST =                                    \
21         build-aux/git-version-gen               \
22         $(NULL)
23
24 # Generate the ChangeLog file (with all entries since the switch to git)
25 # and insert it into the directory we're about to use to create a tarball.
26 .PHONY: gen-ChangeLog
27 gen-ChangeLog:
28         if test -d .git || test -d ../.git; then                                \
29           $(top_srcdir)/build-aux/gitlog-to-changelog > $(distdir)/cl-t;        \
30           rm -f $(distdir)/ChangeLog;                                           \
31           mv $(distdir)/cl-t $(distdir)/ChangeLog;                              \
32         fi
33
34 # see git-version-gen
35 dist-hook: gen-ChangeLog
36         echo $(VERSION) > $(distdir)/.tarball-version
37
38 BUILT_SOURCES = $(top_srcdir)/.version
39 $(top_srcdir)/.version:
40         echo $(VERSION) > $@-t && mv $@-t $@