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

пре 5 година
пре 5 година
пре 5 година
пре 5 година
  1. GCC = gcc
  2. SOURCES = lsfs_fuse.c
  3. OBJS := $(patsubst %.c,%.o,$(SOURCES))
  4. CFLAGS = -O0 -g -Wall -Wextra -Wpedantic -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25
  5. .always_rebuilt:
  6. ##
  7. # Libs
  8. ##
  9. LIBS := fuse
  10. LIBS := $(addprefix -l,$(LIBS))
  11. all: lsfs_fuse
  12. %.o: %.c .always_rebuilt
  13. $(GCC) $(CFLAGS) -c -o $@ $<
  14. lsfs_fuse: $(OBJS) .always_rebuilt
  15. $(GCC) $(OBJS) $(LIBS) $(CFLAGS) -o lsfs_fuse
  16. clean:
  17. rm -f $(OBJS) lsfs_fuse