X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=Makefile;h=673107f0d1dffb9a9c58719ba52fab2e865d60e2;hp=8b8898c9909fa8058dcbb45497d5d2f23d079771;hb=a05d62b28f18e37256f2698106169b1177708cc1;hpb=fddc6604f91ebf76d9090741f9d4f5a4d33be0c6 diff --git a/Makefile b/Makefile index 8b8898c9..673107f0 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,12 @@ PROGS = fio SCRIPTS = fio_generate_plots UNAME := $(shell uname) -SOURCE = gettime.c fio.c ioengines.c init.c stat.c log.c time.c filesetup.c \ +SOURCE := gettime.c fio.c ioengines.c init.c stat.c log.c time.c filesetup.c \ eta.c verify.c memory.c io_u.c parse.c mutex.c options.c \ rbtree.c smalloc.c filehash.c profile.c debug.c lib/rand.c \ - lib/num2str.c $(wildcard crc/*.c) engines/cpu.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 ieee754.c + memalign.c server.c client.c iolog.c backend.c libfio.c flow.c ifeq ($(UNAME), Linux) SOURCE += diskutil.c fifo.c blktrace.c helpers.c cgroup.c trim.c \ @@ -56,9 +56,11 @@ ifeq ($(UNAME), Darwin) LIBS += -lpthread -ldl endif ifneq (,$(findstring CYGWIN,$(UNAME))) - SOURCE += engines/windowsaio.c - LIBS += -lpthread -lrt -lpsapi - CFLAGS += -DPSAPI_VERSION=1 + SOURCE := $(filter-out engines/mmap.c,$(SOURCE)) + SOURCE += engines/windowsaio.c os/windows/posix.c + LIBS += -lpthread -lpsapi -lws2_32 + CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format + CC = x86_64-w64-mingw32-gcc endif OBJS = $(SOURCE:.c=.o) @@ -84,7 +86,12 @@ endif INSTALL = install prefix = /usr/local bindir = $(prefix)/bin + +ifeq ($(UNAME), Darwin) +mandir = /usr/share/man +else mandir = $(prefix)/man +endif all: .depend $(PROGS) $(SCRIPTS)