mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
* Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
27 lines
477 B
Makefile
27 lines
477 B
Makefile
|
|
XEN_ROOT=../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
TARGET := test_x86_emulator
|
|
|
|
HOSTCFLAGS += -D__TEST_HARNESS__
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): x86_emulate.o test_x86_emulator.o
|
|
$(HOSTCC) -o $@ $^
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(TARGET) *.o *~ core
|
|
|
|
.PHONY: install
|
|
install:
|
|
|
|
x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
|
|
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
|
|
|
|
%.o: %.c
|
|
$(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
|