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 filesetup.o \
6 eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
18 OBJS += engines/mmap.o
19 OBJS += engines/posixaio.o
20 OBJS += engines/sync.o
21 OBJS += engines/null.o
24 all: depend $(PROGS) $(SCRIPTS)
27 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
30 -rm -f *.o .depend cscope.out $(PROGS)
33 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
40 bindir = $(prefix)/bin
42 install: $(PROGS) $(SCRIPTS)
43 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
44 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)