Add 'make quickcheck' rule to run a quick check.
[libguestfs.git] / daemon / Makefile.am
1 # libguestfs-daemon
2 # Copyright (C) 2009 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 SUBDIRS = lib tests .
21
22 libsrcdir = $(top_builddir)/../src
23
24 generator_built = \
25         actions.h \
26         stubs.c \
27         names.c
28
29 .PHONY: force
30
31 $(generator_built): $(libsrcdir)/stamp-generator
32 $(libsrcdir)/stamp-generator: force
33         $(MAKE) -C $(libsrcdir) stamp-generator
34
35 BUILT_SOURCES = \
36         $(generator_built) \
37         guestfs_protocol.c \
38         guestfs_protocol.h
39
40 EXTRA_DIST = $(BUILT_SOURCES)
41
42 # This convenience library is solely to avoid compiler warnings
43 # in its generated sources.
44 noinst_LIBRARIES = libprotocol.a
45 libprotocol_a_SOURCES = \
46         guestfs_protocol.c \
47         guestfs_protocol.h
48 libprotocol_a_CFLAGS =
49
50 guestfs_protocol.c: $(libsrcdir)/guestfs_protocol.c
51         rm -f $@
52         ln $< $@
53 guestfs_protocol.h: $(libsrcdir)/guestfs_protocol.h
54         rm -f $@
55         ln $< $@
56 $(libsrcdir)/guestfs_protocol.c: force
57         $(MAKE) -C $(libsrcdir) guestfs_protocol.c
58 $(libsrcdir)/guestfs_protocol.h: force
59         $(MAKE) -C $(libsrcdir) guestfs_protocol.h
60
61 noinst_PROGRAMS = guestfsd
62 guestfsd_SOURCES = \
63         actions.h \
64         available.c \
65         augeas.c \
66         blkid.c \
67         blockdev.c \
68         checksum.c \
69         cmp.c \
70         command.c \
71         cpmv.c \
72         daemon.h \
73         dd.c \
74         debug.c \
75         devsparts.c \
76         df.c \
77         dir.c \
78         dmesg.c \
79         dropcaches.c \
80         du.c \
81         echo_daemon.c \
82         ext2.c \
83         fallocate.c \
84         file.c \
85         fill.c \
86         find.c \
87         fsck.c \
88         glob.c \
89         grep.c \
90         grub.c \
91         guestfsd.c \
92         headtail.c \
93         hexdump.c \
94         htonl.c \
95         initrd.c \
96         inotify.c \
97         link.c \
98         ls.c \
99         lvm.c \
100         mkfs.c \
101         mknod.c \
102         modprobe.c \
103         mount.c \
104         names.c \
105         ntfs.c \
106         optgroups.c \
107         optgroups.h \
108         parted.c \
109         pingdaemon.c \
110         proto.c \
111         readdir.c \
112         realpath.c \
113         scrub.c \
114         selinux.c \
115         sfdisk.c \
116         sleep.c \
117         stat.c \
118         statvfs.c \
119         strings.c \
120         stubs.c \
121         swap.c \
122         sync.c \
123         tar.c \
124         truncate.c \
125         umask.c \
126         upload.c \
127         utimens.c \
128         wc.c \
129         xattr.c \
130         zero.c \
131         zerofree.c
132 guestfsd_LDADD = \
133         libprotocol.a \
134         lib/libgnu.a \
135         $(GETADDRINFO_LIB) \
136         $(HOSTENT_LIB) \
137         $(INET_NTOP_LIB) \
138         $(LIBSOCKET) \
139         $(LIB_CLOCK_GETTIME) \
140         $(LIBINTL) \
141         $(SERVENT_LIB)
142
143 AM_CPPFLAGS = -I$(srcdir)/lib -Ilib
144 guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)