[PATCH] Support for > 1 network connection
[fio.git] / Makefile
... / ...
CommitLineData
1#CC = /opt/intel/cce/9.1.045/bin/icc
2CC = gcc -W
3OPTFLAGS= -O2 -g
4CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS)
5PROGS = fio
6SCRIPTS = fio_generate_plots
7OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
8 filesetup.o eta.o verify.o memory.o io_u.o parse.o
9
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
18OBJS += engines/net.o
19
20INSTALL = install
21prefix = /usr/local
22bindir = $(prefix)/bin
23libdir = $(prefix)/lib/fio
24
25all: depend $(PROGS) $(SCRIPTS)
26
27fio: $(OBJS)
28 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt
29
30clean:
31 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o
32
33depend:
34 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
35
36cscope:
37 @cscope -b
38
39install: $(PROGS) $(SCRIPTS)
40 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
41 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
42
43ifneq ($(wildcard .depend),)
44include .depend
45endif