mirror of
https://git.openwrt.org/project/make_ext4fs.git
synced 2024-12-04 13:10:40 -05:00
libsparse: add Makefile
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
e51257087e
commit
40550da058
21
libsparse/Makefile
Normal file
21
libsparse/Makefile
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user