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