mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
26 lines
409 B
Makefile
26 lines
409 B
Makefile
XEN_ROOT := $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFILES = $(wildcard *.c)
|
|
|
|
HDRS = $(wildcard *.h)
|
|
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
|
|
|
|
TARGET = nsplitd
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
|
|
.PHONY: install
|
|
install: all
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.o $(TARGET) *~
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
|
|
|
|
%.o: %.c $(HDRS) Makefile
|
|
$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
|