mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +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>
26 lines
399 B
Makefile
26 lines
399 B
Makefile
XEN_ROOT := ../../..
|
|
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 $@ $<
|