blob: bffaff443bba0934ac5341b1cc5f1d263fd9a0d8 [file] [log] [blame]
Jens Axboe2866c822006-10-09 15:57:48 +02001CC = gcc
Jens Axboeaad39f42006-10-13 09:06:13 +00002CFLAGS = -Wall -O2 -g -shared -rdynamic -fPIC
Jens Axboe2866c822006-10-09 15:57:48 +02003ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Jens Axboe2866c822006-10-09 15:57:48 +02004OBJS = 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