Files
xen/tools/debugger/gdbsx/xg/Makefile
T
Jan Beulich 6ee2e66674 tools/gdbsx: drop stray recursion into tools/include/
Doing so isn't appropriate here - this gets done very early in the build
process. If the directory is mean to to be buildable on its own,
different arrangements would be needed.

The issue has become more pronounced by 47654a0d73 ("tools/include:
fix (drop) dependencies of when to populate xen/"), but was there before
afaict.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
2020-10-15 17:18:25 +02:00

36 lines
803 B
Makefile

XEN_ROOT = $(CURDIR)/../../../..
include ../Rules.mk
XG_HDRS := xg_public.h
XG_OBJS := xg_main.o
CFLAGS += -D__XEN_TOOLS__
CFLAGS += $(CFLAGS_xeninclude)
.PHONY: all
all: build
.PHONY: build
build: xg_all.a $(XG_HDRS) $(XG_OBJS) Makefile
# build: mk-symlinks xg_all.a $(XG_HDRS) $(XG_OBJS) Makefile
# build: mk-symlinks xg_all.a
xg_all.a: $(XG_OBJS) Makefile $(XG_HDRS)
ar cr $@ $(XG_OBJS) # problems using -m32 in ld
# $(LD) -b elf32-i386 $(LDFLAGS) -r -o $@ $^
# $(CC) -m32 -c -o $@ $^
# xg_main.o: xg_main.c Makefile $(XG_HDRS)
#$(CC) -c $(CFLAGS) -o $@ $<
# %.o: %.c $(XG_HDRS) Makefile -- doesn't work as it won't overwrite Rules.mk
#%.o: %.c -- doesn't recompile when .c changed
.PHONY: clean
clean:
rm -rf xen xg_all.a $(XG_OBJS) .*.d
.PHONY: distclean
distclean: clean