55f4d731c5
Instead of explicitly running the compiler, add dependencies and take advantage of implicit rules to build only as necessary. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
22 lines
480 B
Makefile
22 lines
480 B
Makefile
CC = $(CROSS_COMPILE)gcc
|
|
CFLAGS += -D_FILE_OFFSET_BITS=64
|
|
CFLAGS += -I../../../../include/uapi/
|
|
CFLAGS += -I../../../../include/
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
TEST_PROGS := memfd_test
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
include ../lib.mk
|
|
|
|
build_fuse: fuse_mnt fuse_test
|
|
|
|
fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags)
|
|
fuse_mnt: LDFLAGS += $(shell pkg-config fuse --libs)
|
|
|
|
run_fuse: build_fuse
|
|
@./run_fuse_test.sh || echo "fuse_test: [FAIL]"
|
|
|
|
clean:
|
|
$(RM) memfd_test fuse_test
|