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