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