2015-04-02 07:20:15 +08:00
|
|
|
CC = $(CROSS_COMPILE)gcc
|
2014-08-09 05:25:34 +08:00
|
|
|
CFLAGS += -D_FILE_OFFSET_BITS=64
|
2014-08-09 05:25:32 +08:00
|
|
|
CFLAGS += -I../../../../include/uapi/
|
|
|
|
CFLAGS += -I../../../../include/
|
2015-04-02 07:20:18 +08:00
|
|
|
CFLAGS += -I../../../../usr/include/
|
2014-08-09 05:25:32 +08:00
|
|
|
|
2015-03-11 12:05:59 +08:00
|
|
|
TEST_PROGS := memfd_test
|
|
|
|
|
2015-11-02 20:21:57 +08:00
|
|
|
all: $(TEST_PROGS)
|
|
|
|
|
2015-03-11 12:05:59 +08:00
|
|
|
include ../lib.mk
|
2014-08-09 05:25:32 +08:00
|
|
|
|
2015-11-02 20:21:57 +08:00
|
|
|
build_fuse: fuse_mnt fuse_test
|
|
|
|
|
|
|
|
fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags)
|
|
|
|
fuse_mnt: LDFLAGS += $(shell pkg-config fuse --libs)
|
2014-08-09 05:25:34 +08:00
|
|
|
|
|
|
|
run_fuse: build_fuse
|
|
|
|
@./run_fuse_test.sh || echo "fuse_test: [FAIL]"
|
|
|
|
|
2014-08-09 05:25:32 +08:00
|
|
|
clean:
|
2014-08-09 05:25:34 +08:00
|
|
|
$(RM) memfd_test fuse_test
|