debug: Add 'debug progress' command.
[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         .gitignore
42
43 # This convenience library is solely to avoid compiler warnings
44 # in its generated sources.
45 noinst_LIBRARIES = libprotocol.a
46 libprotocol_a_SOURCES = \
47         guestfs_protocol.c \
48         guestfs_protocol.h
49 libprotocol_a_CFLAGS =
50
51 guestfs_protocol.c: $(libsrcdir)/guestfs_protocol.c
52         rm -f $@
53         ln $< $@
54 guestfs_protocol.h: $(libsrcdir)/guestfs_protocol.h
55         rm -f $@
56         ln $< $@
57 $(libsrcdir)/guestfs_protocol.c: force
58         $(MAKE) -C $(libsrcdir) guestfs_protocol.c
59 $(libsrcdir)/guestfs_protocol.h: force
60         $(MAKE) -C $(libsrcdir) guestfs_protocol.h
61
62 noinst_PROGRAMS = guestfsd
63 guestfsd_SOURCES = \
64         actions.h \
65         available.c \
66         augeas.c \
67         base64.c \
68         blkid.c \
69         blockdev.c \
70         checksum.c \
71         cmp.c \
72         command.c \
73         cpmv.c \
74         daemon.h \
75         dd.c \
76         debug.c \
77         devsparts.c \
78         df.c \
79         dir.c \
80         dmesg.c \
81         dropcaches.c \
82         du.c \
83         echo_daemon.c \
84         ext2.c \
85         fallocate.c \
86         file.c \
87         findfs.c \
88         fill.c \
89         find.c \
90         fsck.c \
91         glob.c \
92         grep.c \
93         grub.c \
94         guestfsd.c \
95         headtail.c \
96         hexdump.c \
97         htonl.c \
98         initrd.c \
99         inotify.c \
100         link.c \
101         ls.c \
102         luks.c \
103         lvm.c \
104         lvm-filter.c \
105         mkfs.c \
106         mknod.c \
107         modprobe.c \
108         mount.c \
109         names.c \
110         ntfs.c \
111         optgroups.c \
112         optgroups.h \
113         parted.c \
114         pingdaemon.c \
115         proto.c \
116         readdir.c \
117         realpath.c \
118         scrub.c \
119         selinux.c \
120         sfdisk.c \
121         sleep.c \
122         stat.c \
123         statvfs.c \
124         strings.c \
125         stubs.c \
126         swap.c \
127         sync.c \
128         tar.c \
129         truncate.c \
130         umask.c \
131         upload.c \
132         utimens.c \
133         wc.c \
134         xattr.c \
135         zero.c \
136         zerofree.c
137 guestfsd_LDADD = \
138         libprotocol.a \
139         lib/libgnu.a \
140         $(GETADDRINFO_LIB) \
141         $(HOSTENT_LIB) \
142         $(INET_NTOP_LIB) \
143         $(LIBSOCKET) \
144         $(LIB_CLOCK_GETTIME) \
145         $(LIBINTL) \
146         $(SERVENT_LIB)
147
148 AM_CPPFLAGS = -I$(srcdir)/lib -Ilib
149 guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)