2 CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
4 SCRIPTS = fio_generate_plots
5 OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
10 OBJS += engines/mmap.o
11 OBJS += engines/posixaio.o
12 OBJS += engines/sync.o
13 OBJS += engines/null.o
16 all: depend $(PROGS) $(SCRIPTS)
19 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
22 -rm -f *.o .depend cscope.out $(PROGS)
25 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
32 bindir = $(prefix)/bin
34 install: $(PROGS) $(SCRIPTS)
35 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
36 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)