[PATCH] Make ->buflen == 0 on SYNC io_u's
[fio.git] / engines / Makefile
index c0f8646c39a96fef40db668adb4b5412a0428ccb..963a93ee9bad97c1dfa8ad0fdc41e1d0ee0c3619 100644 (file)
@@ -1,5 +1,5 @@
 CC     = gcc
-CFLAGS = -Wall -O2 -W -shared -rdynamic -fPIC
+CFLAGS = -W -Wall -O2 -g -shared -rdynamic -fPIC
 ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 OBJS   = fio-engine-sync.o fio-engine-splice.o fio-engine-mmap.o fio-engine-libaio.o fio-engine-posixaio.o fio-engine-sg.o fio-engine-cpu.o
 
@@ -14,6 +14,12 @@ clean:
 %.o: %.c
        $(CC) $(ALL_CFLAGS) -o $*.o $<
 
+fio-engine-libaio.o: fio-engine-libaio.c
+       $(CC) $(ALL_CFLAGS) -laio -o $*.o $<
+
+fio-engine-posixaio.o: fio-engine-posixaio.c
+       $(CC) $(ALL_CFLAGS) -lrt -o $*.o $<
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif