Makefile (c578ddb39e565139897124e74e5a43e56538cb33) | Makefile (93a4388b765d6588d145a2e94e350cc77fd44756) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2CFLAGS += -D_FILE_OFFSET_BITS=64 3CFLAGS += -I../../../../include/uapi/ 4CFLAGS += -I../../../../include/ 5CFLAGS += -I../../../../usr/include/ 6 7TEST_GEN_PROGS := memfd_test 8TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh 9TEST_GEN_FILES := fuse_test fuse_mnt 10 | 1# SPDX-License-Identifier: GPL-2.0 2CFLAGS += -D_FILE_OFFSET_BITS=64 3CFLAGS += -I../../../../include/uapi/ 4CFLAGS += -I../../../../include/ 5CFLAGS += -I../../../../usr/include/ 6 7TEST_GEN_PROGS := memfd_test 8TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh 9TEST_GEN_FILES := fuse_test fuse_mnt 10 |
11fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags) | 11VAR_CFLAGS := $(shell pkg-config fuse --cflags 2>/dev/null) 12ifeq ($(VAR_CFLAGS),) 13VAR_CFLAGS := -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse 14endif |
12 | 15 |
16VAR_LDLIBS := $(shell pkg-config fuse --libs 2>/dev/null) 17ifeq ($(VAR_LDLIBS),) 18VAR_LDLIBS := -lfuse -pthread 19endif 20 21fuse_mnt.o: CFLAGS += $(VAR_CFLAGS) 22 |
|
13include ../lib.mk 14 | 23include ../lib.mk 24 |
15$(OUTPUT)/fuse_mnt: LDLIBS += $(shell pkg-config fuse --libs) | 25$(OUTPUT)/fuse_mnt: LDLIBS += $(VAR_LDLIBS) |
16 17$(OUTPUT)/memfd_test: memfd_test.c common.c 18$(OUTPUT)/fuse_test: fuse_test.c common.c 19 20EXTRA_CLEAN = $(OUTPUT)/common.o | 26 27$(OUTPUT)/memfd_test: memfd_test.c common.c 28$(OUTPUT)/fuse_test: fuse_test.c common.c 29 30EXTRA_CLEAN = $(OUTPUT)/common.o |