[PATCH] Version 1.9
[fio.git] / engines / Makefile
index 2d8de7abdf5b72aefd1a14b6fd9cd3f419e30323..963a93ee9bad97c1dfa8ad0fdc41e1d0ee0c3619 100644 (file)
@@ -1,7 +1,6 @@
 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
-LIBS   =
 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
 
 all: depend $(OBJS)
@@ -15,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