1XEN_ROOT = $(CURDIR)/../.. 2 3ifeq (,$(findstring clean,$(MAKECMDGOALS))) 4include $(XEN_ROOT)/Config.mk 5endif 6 7all: main.a 8 9main.a: main.o 10 $(AR) cr $@ $^ 11 12clean: 13 rm -f *.a *.o 14