2 CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
4 SCRIPTS = fio_generate_plots
6 all: depend $(PROGS) $(SCRIPTS)
8 fio: fio.o fio-io.o fio-ini.o md5.o crc32.o
9 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
12 -rm -f *.o .depend $(PROGS)
15 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
19 bindir = $(prefix)/bin
21 install: $(PROGS) $(SCRIPTS)
22 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
23 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
25 ifneq ($(wildcard .depend),)