SCRIPTS = fio_generate_plots
all: depend $(PROGS) $(SCRIPTS)
+ $(MAKE) -C engines
-fio: fio.o fio-io.o fio-ini.o md5.o crc32.o
- $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
+fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
+ $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt -ldl
clean:
- -rm -f *.o .depend $(PROGS)
+ -rm -f *.o .depend cscope.out $(PROGS) engines/*.o
depend:
@$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
+cscope:
+ @cscope -b
+
INSTALL = install
prefix = /usr/local
bindir = $(prefix)/bin
+libdir = $(prefix)/lib/fio
install: $(PROGS) $(SCRIPTS)
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
+ $(INSTALL) -m755 -d $(DESTDIR) $(libdir)
+ $(INSTALL) engines/*.o $(libdir)
ifneq ($(wildcard .depend),)
include .depend