Files
xen/tools/debugger/gdbsx/Makefile
T
Juergen Gross 35d15b27c9 tools/debugger: fix make distclean
"make distclean" will complain that "-c" is no supported flag for make.

Fix that by using "-C".

The error has been present for a long time, but it was uncovered only
recently.

Fixes: 2400a9a365 ("tools/debugger: Allow make to recurse into debugger/")
Fixes: f9c9b12775 ("tools: fix make distclean")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Tested-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
2022-01-12 08:54:59 +01:00

35 lines
644 B
Makefile

XEN_ROOT = $(CURDIR)/../../..
include ./Rules.mk
.PHONY: all
all:
$(MAKE) -C gx
$(MAKE) -C xg
$(MAKE) gdbsx
.PHONY: clean
clean:
rm -f xg_all.a gx_all.a gdbsx
set -e; for d in xg gx; do $(MAKE) -C $$d clean; done
.PHONY: distclean
distclean: clean
set -e; for d in xg gx; do $(MAKE) -C $$d distclean; done
.PHONY: install
install: all
[ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
$(INSTALL_PROG) gdbsx $(DESTDIR)$(sbindir)/gdbsx
.PHONY: uninstall
uninstall:
rm -f $(DESTDIR)$(sbindir)/gdbsx
gdbsx: gx/gx_all.a xg/xg_all.a
$(CC) $(LDFLAGS) -o $@ $^
xg/xg_all.a:
$(MAKE) -C xg
gx/gx_all.a:
$(MAKE) -C gx