mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
gdbsx/:
- Make use of subdir facility for the "clean" target.
- No need to remove the *.a, they aren't in this dir.
- Avoid calling "distclean" in subdirs as "distclean" targets do only
call "clean", and the "clean" also runs "clean" in subdirs.
- Avoid the need to make "gx_all.a" and "xg_all.a" in the "all"
recipe by forcing make to check for update of "xg/xg_all.a" and
"gx/gx_all.a" by having "FORCE" as prerequisite. Now, when making
"gdbsx", make will recurse even when both *.a already exist.
- List target in $(TARGETS).
gdbsx/*/:
- Fix dependency on *.h.
- Remove some dead code.
- List targets in $(TARGETS).
- Remove "build" target.
- Cleanup "clean" targets.
- remove comments about the choice of "ar" instead of "ld"
- Use "$(AR)" instead of plain "ar".
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
25 lines
363 B
Makefile
25 lines
363 B
Makefile
XEN_ROOT = $(CURDIR)/../../../..
|
|
include ../Rules.mk
|
|
|
|
XG_OBJS := xg_main.o
|
|
|
|
CFLAGS += -D__XEN_TOOLS__
|
|
CFLAGS += $(CFLAGS_xeninclude)
|
|
|
|
TARGETS := xg_all.a
|
|
|
|
.PHONY: all
|
|
all: $(TARGETS)
|
|
|
|
xg_all.a: $(XG_OBJS) Makefile
|
|
$(AR) cr $@ $(XG_OBJS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGETS) $(XG_OBJS) $(DEPS_RM)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
-include $(DEPS_INCLUDE)
|