X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=f57569d5f66461f85a54a69e53d4f161a2d6fba8;hb=d3dacdc61dfe878fda0c363084c4330492e38b2b;hp=f74e59e1242caf1d59c70d0a4936d51e67d584e5;hpb=6cc78de0059146ed2344438b16ffff28fed42915;p=fio.git diff --git a/Makefile b/Makefile index f74e59e1..f57569d5 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,11 @@ ifdef CONFIG_PDB LDFLAGS += -fuse-ld=lld $(LINK_PDBFILE) endif +# If clang, do not use builtin stpcpy as it breaks the build +ifeq ($(CC),clang) + FIO_CFLAGS += -fno-builtin-stpcpy +endif + ifdef CONFIG_GFIO PROGS += gfio endif @@ -51,7 +56,7 @@ SOURCE := $(sort $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \ pshared.c options.c \ smalloc.c filehash.c profile.c debug.c engines/cpu.c \ engines/mmap.c engines/sync.c engines/null.c engines/net.c \ - engines/ftruncate.c engines/filecreate.c engines/filestat.c \ + engines/ftruncate.c engines/filecreate.c engines/filestat.c engines/filedelete.c \ server.c client.c iolog.c backend.c libfio.c flow.c cconv.c \ gettime-thread.c helpers.c json.c idletime.c td_error.c \ profiles/tiobench.c profiles/act.c io_u_queue.c filelock.c \ @@ -79,6 +84,12 @@ ifdef CONFIG_LIBNBD ENGINES += nbd endif +ifdef CONFIG_LIBNFS + CFLAGS += $(LIBNFS_CFLAGS) + LIBS += $(LIBNFS_LIBS) + SOURCE += engines/nfs.c +endif + ifdef CONFIG_64BIT CPPFLAGS += -DBITS_PER_LONG=64 else ifdef CONFIG_32BIT @@ -94,6 +105,21 @@ ifdef CONFIG_RDMA rdma_LIBS = -libverbs -lrdmacm ENGINES += rdma endif +ifdef CONFIG_LIBRPMA_APM + librpma_apm_SRCS = engines/librpma_apm.c + librpma_fio_SRCS = engines/librpma_fio.c + librpma_apm_LIBS = -lrpma -lpmem + ENGINES += librpma_apm +endif +ifdef CONFIG_LIBRPMA_GPSPM + librpma_gpspm_SRCS = engines/librpma_gpspm.c engines/librpma_gpspm_flush.pb-c.c + librpma_fio_SRCS = engines/librpma_fio.c + librpma_gpspm_LIBS = -lrpma -lpmem -lprotobuf-c + ENGINES += librpma_gpspm +endif +ifdef librpma_fio_SRCS + SOURCE += $(librpma_fio_SRCS) +endif ifdef CONFIG_POSIXAIO SOURCE += engines/posixaio.c endif @@ -130,6 +156,11 @@ ifdef CONFIG_HTTP http_LIBS = -lcurl -lssl -lcrypto ENGINES += http endif +ifdef CONFIG_DFS + dfs_SRCS = engines/dfs.c + dfs_LIBS = -luuid -ldaos -ldfs + ENGINES += dfs +endif SOURCE += oslib/asprintf.c ifndef CONFIG_STRSEP SOURCE += oslib/strsep.c @@ -626,9 +657,10 @@ fulltest: make -j && \ sudo make install) \ fi && \ - sudo t/zbd/run-tests-against-regular-nullb && \ + sudo t/zbd/run-tests-against-nullb -s 1 && \ if [ -e /sys/module/null_blk/parameters/zoned ]; then \ - sudo t/zbd/run-tests-against-zoned-nullb; \ + sudo t/zbd/run-tests-against-nullb -s 2; \ + sudo t/zbd/run-tests-against-nullb -s 4; \ fi install: $(PROGS) $(SCRIPTS) $(ENGS_OBJS) tools/plot/fio2gnuplot.1 FORCE