[PATCH] Cleanup iolog handling
[fio.git] / engines / Makefile
CommitLineData
2866c82d 1CC = gcc
7a16dd02 2CFLAGS = -W -Wall -O2 -g -shared -rdynamic -fPIC
2866c82d 3ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2866c82d
JA
4OBJS = 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
5
6all: depend $(OBJS)
7
8depend:
9 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
10
11clean:
12 -rm -f *.o $(OBJS) .depend
13
14%.o: %.c
15 $(CC) $(ALL_CFLAGS) -o $*.o $<
16
84585003
JA
17fio-engine-libaio.o: fio-engine-libaio.c
18 $(CC) $(ALL_CFLAGS) -laio -o $*.o $<
19
2866c82d
JA
20ifneq ($(wildcard .depend),)
21include .depend
22endif