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