summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/memfd/Makefile
blob: b80cd10d53bac058926758b7df013d1190d6e67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS += -D_FILE_OFFSET_BITS=64
CFLAGS += -I../../../../include/uapi/
CFLAGS += -I../../../../include/

all:
	gcc $(CFLAGS) memfd_test.c -o memfd_test

run_tests: all
	gcc $(CFLAGS) memfd_test.c -o memfd_test
	@./memfd_test || echo "memfd_test: [FAIL]"

build_fuse:
	gcc $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt
	gcc $(CFLAGS) fuse_test.c -o fuse_test

run_fuse: build_fuse
	@./run_fuse_test.sh || echo "fuse_test: [FAIL]"

clean:
	$(RM) memfd_test fuse_test