mirror of
https://git.openwrt.org/project/make_ext4fs.git
synced 2024-11-21 14:50:41 -05:00
Add toplevel Makefile
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
40550da058
commit
f5c21f2b2c
31
Makefile
Normal file
31
Makefile
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
CC ?= gcc
|
||||||
|
CFLAGS += -Iinclude -Ilibsparse/include
|
||||||
|
|
||||||
|
OBJ := \
|
||||||
|
allocate.o \
|
||||||
|
canned_fs_config.o \
|
||||||
|
contents.o \
|
||||||
|
crc16.o \
|
||||||
|
ext4fixup.o \
|
||||||
|
ext4_sb.o \
|
||||||
|
ext4_utils.o \
|
||||||
|
extent.o \
|
||||||
|
indirect.o \
|
||||||
|
make_ext4fs_main.o \
|
||||||
|
make_ext4fs.o \
|
||||||
|
sha1.o \
|
||||||
|
uuid.o \
|
||||||
|
wipe.o
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
$(CC) $(CFLAGS) -c -o $@ $^
|
||||||
|
|
||||||
|
make_ext4fs: $(OBJ) libsparse/libsparse.a
|
||||||
|
$(CC) -o $@ $^ -lz
|
||||||
|
|
||||||
|
libsparse/libsparse.a:
|
||||||
|
$(MAKE) -C libsparse/ libsparse.a
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -C libsparse/ clean
|
||||||
|
rm -f $(OBJ) make_ext4fs
|
Loading…
Reference in New Issue
Block a user