Files
xen/tools/misc/lomount/Makefile
T
Keir Fraser 83f34fdcdd Add BINDIR. Use it.
Signed-off-by: Bastian Blank <waldi@debian.org>
2008-01-22 14:31:10 +00:00

28 lines
432 B
Makefile

XEN_ROOT=../../..
include $(XEN_ROOT)/tools/Rules.mk
CFLAGS += -Werror
HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
BIN = lomount
.PHONY: all
all: build
.PHONY: build
build: $(BIN)
.PHONY: install
install install-recurse: build
$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
.PHONY: clean
clean:
$(RM) *.a *.so *.o *.rpm $(BIN)
%: %.c $(HDRS) Makefile
$(CC) $(CFLAGS) -o $@ $<