[PATCH] Link in known io engines
No real point in using dlopen() to find engines we know about. We still
support loading external modules, just give the name as the full path
to such a file.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/Makefile b/Makefile
index ad9aa3b..1ebad6a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,14 @@
OBJS = fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
filesetup.o eta.o verify.o memory.o io_u.o parse.o
+OBJS += engines/fio-engine-cpu.o
+OBJS += engines/fio-engine-libaio.o
+OBJS += engines/fio-engine-mmap.o
+OBJS += engines/fio-engine-posixaio.o
+OBJS += engines/fio-engine-sg.o
+OBJS += engines/fio-engine-splice.o
+OBJS += engines/fio-engine-sync.o
+
INSTALL = install
prefix = /usr/local
bindir = $(prefix)/bin
@@ -15,10 +23,9 @@
CFLAGS += '-D_INST_PREFIX="$(FIO_INST_DIR)"'
all: depend $(PROGS) $(SCRIPTS)
- @$(MAKE) -C engines
fio: $(OBJS)
- $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl
+ $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt
clean:
-rm -f *.o .depend cscope.out $(PROGS) engines/*.o
@@ -33,7 +40,6 @@
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
$(INSTALL) -m755 -d $(DESTDIR) $(libdir)
- $(INSTALL) engines/*.o $(libdir)
ifneq ($(wildcard .depend),)
include .depend