availability: Add optional groups and implement guestfs_available call.
[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): force
32         $(MAKE) -C $(libsrcdir) stamp-generator
33
34 BUILT_SOURCES = $(generator_built)
35
36 EXTRA_DIST = $(BUILT_SOURCES)
37
38 $(libsrcdir)/guestfs_protocol.o: force
39         $(MAKE) -C $(libsrcdir) guestfs_protocol.o
40
41 noinst_PROGRAMS = guestfsd
42 guestfsd_SOURCES = \
43         actions.h \
44         available.c \
45         augeas.c \
46         blkid.c \
47         blockdev.c \
48         checksum.c \
49         cmp.c \
50         command.c \
51         cpmv.c \
52         daemon.h \
53         debug.c \
54         devsparts.c \
55         df.c \
56         dir.c \
57         dmesg.c \
58         dropcaches.c \
59         du.c \
60         echo_daemon.c \
61         ext2.c \
62         fallocate.c \
63         file.c \
64         fill.c \
65         find.c \
66         fsck.c \
67         glob.c \
68         grep.c \
69         grub.c \
70         guestfsd.c \
71         headtail.c \
72         hexdump.c \
73         initrd.c \
74         inotify.c \
75         link.c \
76         ls.c \
77         lvm.c \
78         mkfs.c \
79         mknod.c \
80         modprobe.c \
81         mount.c \
82         names.c \
83         ntfs.c \
84         optgroups.c \
85         optgroups.h \
86         parted.c \
87         pingdaemon.c \
88         proto.c \
89         readdir.c \
90         realpath.c \
91         scrub.c \
92         selinux.c \
93         sfdisk.c \
94         sleep.c \
95         stat.c \
96         strings.c \
97         stubs.c \
98         swap.c \
99         sync.c \
100         tar.c \
101         truncate.c \
102         umask.c \
103         upload.c \
104         utimens.c \
105         wc.c \
106         xattr.c \
107         zero.c \
108         zerofree.c
109 guestfsd_LDADD = $(libsrcdir)/guestfs_protocol.o lib/libgnu.a
110
111 AM_CPPFLAGS = -I$(srcdir)/lib -Ilib
112 guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)