[PATCH] First cut at supporting > 1 file per job
[fio.git] / engines / Makefile
1 CC      = gcc
2 CFLAGS  = -Wall -O2 -g -shared -rdynamic -fPIC
3 ALL_CFLAGS = $(CFLAGS) -I.. -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
4 OBJS    = 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
6 all: depend $(OBJS)
7
8 depend:
9         @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
10
11 clean:
12         -rm -f *.o $(OBJS) .depend
13
14 %.o: %.c
15         $(CC) $(ALL_CFLAGS) -o $*.o $<
16
17 ifneq ($(wildcard .depend),)
18 include .depend
19 endif