Commit | Line | Data |
---|---|---|
1e97cce9 JA |
1 | #CC = /opt/intel/cce/9.1.045/bin/icc |
2 | CC = gcc -W | |
ab5d675e | 3 | DEBUGFLAGS = -D_FORTIFY_SOURCE=2 |
4cf6b5d3 | 4 | OPTFLAGS= -O2 -g $(EXTFLAGS) |
9728ce37 | 5 | CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(DEBUGFLAGS) -rdynamic |
ebac4655 JA |
6 | PROGS = fio |
7 | SCRIPTS = fio_generate_plots | |
02bcaa8c | 8 | OBJS = 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 |
13 | OBJS += engines/cpu.o |
14 | OBJS += engines/libaio.o | |
15 | OBJS += engines/mmap.o | |
16 | OBJS += engines/posixaio.o | |
17 | OBJS += engines/sg.o | |
18 | OBJS += engines/splice.o | |
19 | OBJS += engines/sync.o | |
20 | OBJS += engines/null.o | |
ed92ac0c | 21 | OBJS += engines/net.o |
a4f4fdd7 | 22 | OBJS += engines/syslet-rw.o |
609342ff | 23 | OBJS += engines/guasi.o |
5f350952 | 24 | |
c1d5725e JA |
25 | INSTALL = install |
26 | prefix = /usr/local | |
27 | bindir = $(prefix)/bin | |
c1d5725e | 28 | |
a37bded3 | 29 | all: $(PROGS) $(SCRIPTS) |
ebac4655 | 30 | |
2f9ade3c | 31 | fio: $(OBJS) |
4cf6b5d3 | 32 | $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt |
ebac4655 JA |
33 | |
34 | clean: | |
6bb1c841 | 35 | -rm -f *.o .depend cscope.out $(PROGS) engines/*.o core.* core |
ebac4655 JA |
36 | |
37 | depend: | |
e9310e05 | 38 | @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend |
ebac4655 | 39 | |
592ef98a JA |
40 | cscope: |
41 | @cscope -b | |
42 | ||
c69aa91f | 43 | $(PROGS): depend |
a37bded3 | 44 | |
ebac4655 JA |
45 | install: $(PROGS) $(SCRIPTS) |
46 | $(INSTALL) -m755 -d $(DESTDIR)$(bindir) | |
47 | $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) | |
48 | ||
49 | ifneq ($(wildcard .depend),) | |
50 | include .depend | |
51 | endif |