Fix sync engine completion latency
[fio.git] / Makefile.solaris
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
3PROGS = fio
4SCRIPTS = fio_generate_plots
5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o
7
8OBJS += engines/cpu.o
9OBJS += engines/mmap.o
10OBJS += engines/posixaio.o
11OBJS += engines/sync.o
12OBJS += engines/null.o
13OBJS += engines/net.o
14
15all: depend $(PROGS) $(SCRIPTS)
16
17fio: $(OBJS)
18 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
19
20clean:
21 -rm -f *.o .depend cscope.out $(PROGS)
22
23depend:
24 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
25
26cscope:
27 @cscope -b
28
29INSTALL = install
30prefix = /usr/local
31bindir = $(prefix)/bin
32
33install: $(PROGS) $(SCRIPTS)
34 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
35 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)