fjfs is FUSE module that implements virtual joining of multiple files as one. https://georgi.unixsol.org/programs/fjfs/
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.

Makefile 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. CC = $(CROSS)$(TARGET)gcc
  2. BUILD_ID = $(shell date +%F_%R)
  3. VERSION = $(shell cat RELEASE)
  4. GIT_VER = $(shell git describe --tags --dirty --always 2>/dev/null)
  5. ifeq "$(GIT_VER)" ""
  6. GIT_VER = "release"
  7. endif
  8. CFLAGS_BUILD = -DBUILD_ID=\"$(BUILD_ID)\" -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\"
  9. CFLAGS_DBG?= -ggdb
  10. CFLAGS_OPT?= -O2
  11. CFLAGS_WARN?= -Wall -W -Wextra -Wshadow -Wformat-security \
  12. -std=c99 -pedantic -Wbad-function-cast \
  13. -Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
  14. -Wnested-externs -Wpointer-arith \
  15. -Wredundant-decls -Wstrict-prototypes
  16. CFLAGS?= ${CFLAGS_DBG} ${CFLAGS_OPT}
  17. CFLAGS+= ${CFLAGS_WARN} ${CFLAGS_BUILD}
  18. CFLAGS+= `pkg-config --cflags fuse`
  19. LIBS+= `pkg-config --libs fuse`
  20. PREFIX ?= /usr/local
  21. INSTALL_PRG = fjfs
  22. INSTALL_PRG_DIR = $(subst //,/,$(DESTDIR)/$(PREFIX)/bin)
  23. .PHONY: distclean clean install uninstall
  24. all: fjfs
  25. fjfs: fjfs.c
  26. ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ fjfs.c ${LIBS}
  27. clean:
  28. rm -f fjfs
  29. distclean: clean
  30. install: all
  31. install -d "$(INSTALL_PRG_DIR)"
  32. install $(INSTALL_PRG) "$(INSTALL_PRG_DIR)"
  33. uninstall:
  34. rm $(INSTALL_PRG_DIR)/$(INSTALL_PRG)