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