One more fio_ddir fixup
[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
4cf6b5d3 4OPTFLAGS= -O2 -g $(EXTFLAGS)
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 \
4b87898e 9 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
e2887563 10 rbtree.o diskutil.o fifo.o blktrace.o
ebac4655 11
f8fe35e8
JA
12OBJS += engines/cpu.o
13OBJS += engines/libaio.o
14OBJS += engines/mmap.o
15OBJS += engines/posixaio.o
16OBJS += engines/sg.o
17OBJS += engines/splice.o
18OBJS += engines/sync.o
19OBJS += engines/null.o
ed92ac0c 20OBJS += engines/net.o
a4f4fdd7 21OBJS += engines/syslet-rw.o
609342ff 22OBJS += engines/guasi.o
5f350952 23
c1d5725e
JA
24INSTALL = install
25prefix = /usr/local
26bindir = $(prefix)/bin
c1d5725e 27
a37bded3 28all: $(PROGS) $(SCRIPTS)
ebac4655 29
2f9ade3c 30fio: $(OBJS)
4cf6b5d3 31 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt
ebac4655
JA
32
33clean:
6bb1c841 34 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o core.* core
ebac4655
JA
35
36depend:
e9310e05 37 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
ebac4655 38
592ef98a
JA
39cscope:
40 @cscope -b
41
c69aa91f 42$(PROGS): depend
a37bded3 43
ebac4655
JA
44install: $(PROGS) $(SCRIPTS)
45 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
46 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
47
48ifneq ($(wildcard .depend),)
49include .depend
50endif