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