Commit | Line | Data |
---|---|---|
1e97cce9 JA |
1 | #CC = /opt/intel/cce/9.1.045/bin/icc |
2 | CC = gcc -W | |
b1610092 PB |
3 | OPTFLAGS= -O2 -g |
4 | CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) | |
ebac4655 JA |
5 | PROGS = fio |
6 | SCRIPTS = fio_generate_plots | |
02bcaa8c | 7 | OBJS = 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 |
10 | OBJS += engines/cpu.o |
11 | OBJS += engines/libaio.o | |
12 | OBJS += engines/mmap.o | |
13 | OBJS += engines/posixaio.o | |
14 | OBJS += engines/sg.o | |
15 | OBJS += engines/splice.o | |
16 | OBJS += engines/sync.o | |
17 | OBJS += engines/null.o | |
ed92ac0c | 18 | OBJS += engines/net.o |
5f350952 | 19 | |
c1d5725e JA |
20 | INSTALL = install |
21 | prefix = /usr/local | |
22 | bindir = $(prefix)/bin | |
23 | libdir = $(prefix)/lib/fio | |
24 | ||
ebac4655 JA |
25 | all: depend $(PROGS) $(SCRIPTS) |
26 | ||
2f9ade3c | 27 | fio: $(OBJS) |
5f350952 | 28 | $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt |
ebac4655 JA |
29 | |
30 | clean: | |
2866c82d | 31 | -rm -f *.o .depend cscope.out $(PROGS) engines/*.o |
ebac4655 JA |
32 | |
33 | depend: | |
34 | @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend | |
35 | ||
592ef98a JA |
36 | cscope: |
37 | @cscope -b | |
38 | ||
ebac4655 JA |
39 | install: $(PROGS) $(SCRIPTS) |
40 | $(INSTALL) -m755 -d $(DESTDIR)$(bindir) | |
41 | $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) | |
42 | ||
43 | ifneq ($(wildcard .depend),) | |
44 | include .depend | |
45 | endif |