mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Most subdirs only build a single tool to start with and those which build multiple tools often have different linkage requirements. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
33 lines
624 B
Makefile
33 lines
624 B
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
#CFLAGS += -Werror -g -O0
|
|
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
|
|
LIBBIN =
|
|
|
|
ifeq ($(XEN_TARGET_ARCH),ia64)
|
|
LIBBIN += xenitp
|
|
endif
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(LIBBIN)
|
|
|
|
.PHONY: install
|
|
install: build
|
|
[ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
|
|
[ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.a *.so *.o *.rpm $(LIBBIN)
|
|
|
|
XENITP_OBJS=xenitp.o ia64-dis.o ia64-opc.o cpu-ia64-opc.o
|
|
|
|
xenitp: $(XENITP_OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $(XENITP_OBJS) $(LDLIBS_libxenctrl)
|