You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
424 B

GCC = gcc
SOURCES = lsfs_fuse.c
OBJS := $(patsubst %.c,%.o,$(SOURCES))
CFLAGS = -O0 -g -Wall -Wextra -Wpedantic -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25
.always_rebuilt:
##
# Libs
##
LIBS := fuse
LIBS := $(addprefix -l,$(LIBS))
all: lsfs_fuse
%.o: %.c .always_rebuilt
$(GCC) $(CFLAGS) -c -o $@ $<
lsfs_fuse: $(OBJS) .always_rebuilt
$(GCC) $(OBJS) $(LIBS) $(CFLAGS) -o lsfs_fuse
clean:
rm -f $(OBJS) lsfs_fuse