2 CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INC_DEBUG
4 SCRIPTS = fio_generate_plots
5 OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o filesetup.o \
6 eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
7 rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o helpers.o solaris.o \
11 OBJS += lib/flist_sort.o
18 OBJS += crc/crc32c-intel.o
26 OBJS += engines/mmap.o
27 OBJS += engines/posixaio.o
28 OBJS += engines/sync.o
29 OBJS += engines/null.o
31 OBJS += engines/solarisaio.o
35 bindir = $(prefix)/bin
36 mandir = $(prefix)/man
39 $(CC) -o $*.o -c $(CFLAGS) $<
41 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
43 all: $(PROGS) $(SCRIPTS)
46 -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core
51 install: $(PROGS) $(SCRIPTS)
52 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
53 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
54 $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
55 $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1
56 $(INSTALL) -m 644 fio_generate_plots.1 $(DESTDIR)$(mandir)/man1