[PATCH] 'null' ioengine
[fio.git] / Makefile
CommitLineData
ebac4655 1CC = gcc
3c9b60c1 2CFLAGS = -W -Wwrite-strings -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ebac4655
JA
3PROGS = fio
4SCRIPTS = fio_generate_plots
02bcaa8c 5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
cb2c86fd 6 filesetup.o eta.o verify.o memory.o io_u.o parse.o
ebac4655 7
5f350952
JA
8OBJS += engines/fio-engine-cpu.o
9OBJS += engines/fio-engine-libaio.o
10OBJS += engines/fio-engine-mmap.o
11OBJS += engines/fio-engine-posixaio.o
12OBJS += engines/fio-engine-sg.o
13OBJS += engines/fio-engine-splice.o
14OBJS += engines/fio-engine-sync.o
a94ea28b 15OBJS += engines/fio-engine-null.o
5f350952 16
c1d5725e
JA
17INSTALL = install
18prefix = /usr/local
19bindir = $(prefix)/bin
20libdir = $(prefix)/lib/fio
21
ebac4655
JA
22all: depend $(PROGS) $(SCRIPTS)
23
2f9ade3c 24fio: $(OBJS)
5f350952 25 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt
ebac4655
JA
26
27clean:
2866c82d 28 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o
ebac4655
JA
29
30depend:
31 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
32
592ef98a
JA
33cscope:
34 @cscope -b
35
ebac4655
JA
36install: $(PROGS) $(SCRIPTS)
37 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
38 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
2866c82d 39 $(INSTALL) -m755 -d $(DESTDIR) $(libdir)
ebac4655
JA
40
41ifneq ($(wildcard .depend),)
42include .depend
43endif