mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +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>
28 lines
442 B
Makefile
28 lines
442 B
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
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 $@ $<
|
|
|