Files
xen/tools/misc/nsplitd/Makefile
T
kaf24@firebug.cl.cam.ac.uk b5fa90ac8e build: Clean up use of .PHONY
* 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>
2006-04-10 17:02:49 +01:00

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 $@ $<