1CC = $(CROSS_COMPILE)gcc
2CFLAGS += -D_FILE_OFFSET_BITS=64
3CFLAGS += -I../../../../include/uapi/
4CFLAGS += -I../../../../include/
5CFLAGS += -I../../../../usr/include/
6
7TEST_PROGS := memfd_test
8
9all: $(TEST_PROGS)
10
11include ../lib.mk
12
13build_fuse: fuse_mnt fuse_test
14
15fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags)
16fuse_mnt: LDFLAGS += $(shell pkg-config fuse --libs)
17
18run_fuse: build_fuse
19	@./run_fuse_test.sh || echo "fuse_test: [FAIL]"
20
21clean:
22	$(RM) memfd_test fuse_test
23