Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 36 lines (25 sloc) 583 Bytes
SRCS := $(wildcard *.c)
OBJS := $(SRCS:.c=.o)
HDRS := $(wildcard *.h)
CFLAGS := -g `pkg-config fuse --cflags`
LDLIBS := `pkg-config fuse --libs` -lbsd
nufs: $(SRCS)
gcc $(CFLAGS) -o nufs $(SRCS) $(LDLIBS)
clean: unmount
rm -f nufs *.o test.log
rmdir mnt || true
mount: nufs
mkdir -p mnt || true
./nufs -s -f mnt data.nufs
unmount:
fusermount -u mnt || true
test: nufs
perl test.pl
gdb: nufs
mkdir -p mnt || true
gdb --args ./nufs -f mnt data.nufs
clean2: unmount
rm -f nufs *.o test.log
rmdir mnt || true
rm data.nufs || true
.PHONY: clean mount unmount gdb
You can’t perform that action at this time.