mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
$(LIBEXEC_BIN) is a dumping ground of many things. Separate the "clearly tests" from everything else so we can clean up how they're run in CI. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Anthony PERARD <anthony.perard@vates.tech> Acked-by: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Denis Mukhin <dmukhin@ford.com>
45 lines
806 B
Makefile
45 lines
806 B
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
TARGETS-y := test-xenstore
|
|
TARGETS := $(TARGETS-y)
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(TARGETS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) -- *.o $(TARGETS) $(DEPS_RM)
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
$(RM) -- *~
|
|
|
|
.PHONY: install
|
|
install: all
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC)/tests
|
|
$(if $(TARGETS),$(INSTALL_PROG) $(TARGETS) $(DESTDIR)$(LIBEXEC)/tests)
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
$(RM) -- $(addprefix $(DESTDIR)$(LIBEXEC)/tests/,$(TARGETS))
|
|
|
|
CFLAGS += $(CFLAGS_libxenstore)
|
|
CFLAGS += $(APPEND_CFLAGS)
|
|
|
|
LDFLAGS += $(LDLIBS_libxenstore)
|
|
LDFLAGS += $(APPEND_LDFLAGS)
|
|
ifeq ($(CONFIG_Linux),y)
|
|
LDFLAGS += -Wl,--as-needed -lc -lrt
|
|
endif
|
|
|
|
%.o: Makefile
|
|
|
|
test-xenstore: test-xenstore.o
|
|
$(CC) -o $@ $< $(LDFLAGS)
|
|
|
|
-include $(DEPS_INCLUDE)
|