No need to cast async_exec() syscall to void * anymore
[fio.git] / Makefile
... / ...
CommitLineData
1#CC = /opt/intel/cce/9.1.045/bin/icc
2CC = gcc -W
3DEBUGFLAGS = -D_FORTIFY_SOURCE=2
4OPTFLAGS= -O2 -g
5CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(DEBUGFLAGS)
6PROGS = fio
7SCRIPTS = fio_generate_plots
8OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
9 filesetup.o eta.o verify.o memory.o io_u.o parse.o
10
11OBJS += engines/cpu.o
12OBJS += engines/libaio.o
13OBJS += engines/mmap.o
14OBJS += engines/posixaio.o
15OBJS += engines/sg.o
16OBJS += engines/splice.o
17OBJS += engines/sync.o
18OBJS += engines/null.o
19OBJS += engines/net.o
20OBJS += engines/syslet-rw.o
21
22INSTALL = install
23prefix = /usr/local
24bindir = $(prefix)/bin
25
26all: $(PROGS) $(SCRIPTS)
27
28fio: $(OBJS)
29 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -lm -ldl -laio -lrt
30
31clean:
32 -rm -f *.o .depend cscope.out $(PROGS) engines/*.o core.* core
33
34depend:
35 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
36
37cscope:
38 @cscope -b
39
40$(PROGS): | depend
41
42install: $(PROGS) $(SCRIPTS)
43 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
44 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
45
46ifneq ($(wildcard .depend),)
47include .depend
48endif