Update to guasi 0.5 diff
[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
9728ce37 5CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(DEBUGFLAGS) -rdynamic
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 \
214e1eca 9 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o options.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
609342ff 21OBJS += engines/guasi.o
5f350952 22
c1d5725e
JA
23INSTALL = install
24prefix = /usr/local
25bindir = $(prefix)/bin
c1d5725e 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:
6bb1c841 33 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o core.* core
ebac4655
JA
34
35depend:
e9310e05 36 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
ebac4655 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