[PATCH] Make fio -W clean again
[fio.git] / engines / Makefile
CommitLineData
2866c82d 1CC = gcc
aad39f4a 2CFLAGS = -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
17ifneq ($(wildcard .depend),)
18include .depend
19endif