|
@ -1,6 +1,12 @@ |
|
|
VERSION = "2.9.7-mergerfs_2.26.0" |
|
|
VERSION = "2.9.7-mergerfs_2.26.0" |
|
|
OPT = -O2 |
|
|
OPT = -O2 |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(DEBUG),1) |
|
|
|
|
|
DEBUG_FLAGS := -g |
|
|
|
|
|
else |
|
|
|
|
|
DEBUG_FLAGS := |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
DESTDIR = "/" |
|
|
DESTDIR = "/" |
|
|
BINDIR = "/bin" |
|
|
BINDIR = "/bin" |
|
|
SBINDIR = "/sbin" |
|
|
SBINDIR = "/sbin" |
|
@ -22,7 +28,7 @@ SRC = \ |
|
|
OBJ = $(SRC:lib/%.c=obj/%.o) |
|
|
OBJ = $(SRC:lib/%.c=obj/%.o) |
|
|
DEPS = $(OBJ:obj/%.o=obj/%.d) |
|
|
DEPS = $(OBJ:obj/%.o=obj/%.d) |
|
|
CFLAGS = $(OPT) \
|
|
|
CFLAGS = $(OPT) \
|
|
|
-g \
|
|
|
|
|
|
|
|
|
$(DEBUG_FLAGS) \
|
|
|
-Wall \
|
|
|
-Wall \
|
|
|
-pipe \
|
|
|
-pipe \
|
|
|
'-D_FILE_OFFSET_BITS=64' \
|
|
|
'-D_FILE_OFFSET_BITS=64' \
|
|
@ -33,18 +39,24 @@ CFLAGS = $(OPT) \ |
|
|
-Iinclude \
|
|
|
-Iinclude \
|
|
|
-MMD |
|
|
-MMD |
|
|
LDFLAGS = \
|
|
|
LDFLAGS = \
|
|
|
-ldl \
|
|
|
|
|
|
-lrt \
|
|
|
-lrt \
|
|
|
-pthread |
|
|
-pthread |
|
|
|
|
|
|
|
|
all: obj/libfuse.a mergerfs-mount mount.mergerfs |
|
|
|
|
|
|
|
|
all: obj/libfuse.a |
|
|
|
|
|
|
|
|
libfuse.a: obj/libfuse.a |
|
|
libfuse.a: obj/libfuse.a |
|
|
|
|
|
|
|
|
include/config.h: |
|
|
include/config.h: |
|
|
ecfd/build | tee include/config.h |
|
|
ecfd/build | tee include/config.h |
|
|
|
|
|
|
|
|
obj/libfuse.a: obj/obj-stamp include/config.h $(OBJ) |
|
|
|
|
|
|
|
|
obj/obj-stamp: |
|
|
|
|
|
mkdir -p obj |
|
|
|
|
|
touch $@ |
|
|
|
|
|
|
|
|
|
|
|
obj/libfuse.a: |
|
|
|
|
|
$(MAKE) obj/obj-stamp |
|
|
|
|
|
$(MAKE) include/config.h |
|
|
|
|
|
$(MAKE) $(OBJ) |
|
|
ar rcs obj/libfuse.a $(OBJ) |
|
|
ar rcs obj/libfuse.a $(OBJ) |
|
|
|
|
|
|
|
|
mergerfs-mount: include/config.h util/fusermount.c lib/mount_util.c |
|
|
mergerfs-mount: include/config.h util/fusermount.c lib/mount_util.c |
|
@ -53,10 +65,6 @@ mergerfs-mount: include/config.h util/fusermount.c lib/mount_util.c |
|
|
mount.mergerfs: obj/libfuse.a util/mount.fuse.c |
|
|
mount.mergerfs: obj/libfuse.a util/mount.fuse.c |
|
|
$(CC) $(CFLAGS) -o mount.mergerfs util/mount.fuse.c obj/libfuse.a $(LDFLAGS) |
|
|
$(CC) $(CFLAGS) -o mount.mergerfs util/mount.fuse.c obj/libfuse.a $(LDFLAGS) |
|
|
|
|
|
|
|
|
obj/obj-stamp: |
|
|
|
|
|
mkdir -p obj |
|
|
|
|
|
touch $@ |
|
|
|
|
|
|
|
|
|
|
|
obj/%.o: lib/%.c |
|
|
obj/%.o: lib/%.c |
|
|
$(CC) $(CFLAGS) -c $< -o $@ |
|
|
$(CC) $(CFLAGS) -c $< -o $@ |
|
|
|
|
|
|
|
|