From 40550da058150eee158f9ed6d2e9b712ee0f8f1b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 4 Apr 2015 22:48:01 +0200 Subject: [PATCH] libsparse: add Makefile Signed-off-by: Jo-Philipp Wich --- libsparse/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libsparse/Makefile diff --git a/libsparse/Makefile b/libsparse/Makefile new file mode 100644 index 0000000..2fd4c30 --- /dev/null +++ b/libsparse/Makefile @@ -0,0 +1,21 @@ +CC ?= gcc +AR ?= ar + +CFLAGS += -Iinclude + +OBJ := \ + backed_block.o \ + output_file.o \ + sparse.o \ + sparse_crc32.o \ + sparse_err.o \ + sparse_read.o + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $^ + +libsparse.a: $(OBJ) + $(AR) rcs $@ $^ + +clean: + rm -f $(OBJ) libsparse.a -- 2.11.0