mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +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>
28 lines
487 B
Makefile
28 lines
487 B
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Werror
|
|
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
CFLAGS += $(CFLAGS_libxenguest)
|
|
CFLAGS += $(CFLAGS_xeninclude)
|
|
|
|
TARGETS-y :=
|
|
TARGETS-$(CONFIG_X86) += xen-access
|
|
TARGETS := $(TARGETS-y)
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(TARGETS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.o $(TARGETS) *~ $(DEPS)
|
|
|
|
xen-access: xen-access.o Makefile
|
|
$(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest)
|
|
|
|
-include $(DEPS)
|