diff options
Diffstat (limited to 'tools/misc/lomount/Makefile')
-rw-r--r-- | tools/misc/lomount/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/misc/lomount/Makefile b/tools/misc/lomount/Makefile new file mode 100644 index 0000000000..32d9db41a4 --- /dev/null +++ b/tools/misc/lomount/Makefile @@ -0,0 +1,27 @@ +INSTALL = install +INSTALL_PROG = $(INSTALL) -m0755 +INSTALL_DIR = $(INSTALL) -d -m0755 +INSTALL_DATA = $(INSTALL) -m0644 + +XEN_ROOT=../../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Wall -Werror -O3 + +HDRS = $(wildcard *.h) +OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) + +BIN = lomount + +all: build +build: $(BIN) + +install: build + $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin + +clean: + $(RM) *.a *.so *.o *.rpm $(BIN) + +%: %.c $(HDRS) Makefile + $(CC) $(CFLAGS) -o $@ $< + |