X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=Makefile;h=ccfa802bfb9bfc74158b3fe5ffa4171ec1297e07;hp=f72bf8e2562f6d941bc18a5984c0bab21a2c6f6e;hb=62cb17de316e5aa755228fef8ce19b5f5353a3cf;hpb=84306c1d9ecd94e93436da62b41ef61ac6e281ac diff --git a/Makefile b/Makefile index f72bf8e2..ccfa802b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC = gcc +CC ?= gcc DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG CPPFLAGS= -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \ $(DEBUGFLAGS) @@ -14,13 +14,15 @@ SOURCE := gettime.c fio.c ioengines.c init.c stat.c log.c time.c filesetup.c \ rbtree.c smalloc.c filehash.c profile.c debug.c lib/rand.c \ lib/num2str.c lib/ieee754.c $(wildcard crc/*.c) engines/cpu.c \ engines/mmap.c engines/sync.c engines/null.c engines/net.c \ - memalign.c server.c client.c iolog.c backend.c libfio.c flow.c + memalign.c server.c client.c iolog.c backend.c libfio.c flow.c \ + json.c ifeq ($(UNAME), Linux) SOURCE += diskutil.c fifo.c blktrace.c helpers.c cgroup.c trim.c \ engines/libaio.c engines/posixaio.c engines/sg.c \ engines/splice.c engines/syslet-rw.c engines/guasi.c \ - engines/binject.c engines/rdma.c profiles/tiobench.c + engines/binject.c engines/rdma.c profiles/tiobench.c \ + engines/fusion-aw.c engines/falloc.c engines/e4defrag.c LIBS += -lpthread -ldl -lrt -laio LDFLAGS += -rdynamic endif @@ -61,6 +63,7 @@ ifneq (,$(findstring CYGWIN,$(UNAME))) LIBS += -lpthread -lpsapi -lws2_32 CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format CC = x86_64-w64-mingw32-gcc + #CC = i686-w64-mingw32-gcc endif OBJS = $(SOURCE:.c=.o)