mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
The previous changeset, e4f5949c44 ("tools: Add -Werror by default to all
tools/"), added "-Werror" to CFLAGS in tools/Rules.mk. Remove it from
everywhere else now it is duplicated.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
31 lines
610 B
Makefile
31 lines
610 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
CFLAGS += -DXC_WANT_COMPAT_MAP_FOREIGN_API
|
|
LDLIBS += $(LDLIBS_libxenctrl)
|
|
|
|
CFILES := kdd.c kdd-xen.c
|
|
OBJS := $(CFILES:.c=.o)
|
|
|
|
all: kdd
|
|
|
|
kdd: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) $(DEPS_RM) kdd
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: install
|
|
install: all
|
|
[ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
|
$(INSTALL_PROG) kdd $(DESTDIR)$(sbindir)/xen-kdd
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(sbindir)/xen-kdd
|