[PATCH] Version 1.9
[fio.git] / engines / Makefile
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -W -Wall -O2 -g -shared -rdynamic -fPIC
3ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
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
17fio-engine-libaio.o: fio-engine-libaio.c
18 $(CC) $(ALL_CFLAGS) -laio -o $*.o $<
19
20fio-engine-posixaio.o: fio-engine-posixaio.c
21 $(CC) $(ALL_CFLAGS) -lrt -o $*.o $<
22
23ifneq ($(wildcard .depend),)
24include .depend
25endif