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
18 OBJS += engines/mmap.o
19 OBJS += engines/posixaio.o
20 OBJS += engines/sync.o
21 OBJS += engines/null.o
28 bindir = $(prefix)/bin
29 mandir = $(prefix)/man
32 $(CC) -o $*.o -c $(CFLAGS) $<
34 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
36 all: $(PROGS) $(SCRIPTS)
39 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o crc/*.o lib/*.o core.* core
44 install: $(PROGS) $(SCRIPTS)
45 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
46 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)