[PATCH] Separate io engines into separate loadable objects
[fio.git] / engines / Makefile
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -Wall -O2 -W -shared -rdynamic -fPIC
3ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
4LIBS =
5OBJS = 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
6
7all: depend $(OBJS)
8
9depend:
10 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
11
12clean:
13 -rm -f *.o $(OBJS) .depend
14
15%.o: %.c
16 $(CC) $(ALL_CFLAGS) -o $*.o $<
17
18ifneq ($(wildcard .depend),)
19include .depend
20endif