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