[PATCH] aio example should use O_DIRECT IO
[fio.git] / Makefile.solaris
CommitLineData
2c0ecd28
JA
1CC = gcc
2CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
3PROGS = fio
4SCRIPTS = fio_generate_plots
02bcaa8c 5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
c11883f7
JA
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o
7
f8fe35e8
JA
8OBJS += engines/cpu.o
9OBJS += engines/mmap.o
10OBJS += engines/posixaio.o
11OBJS += engines/sync.o
12OBJS += engines/null.o
ed92ac0c 13OBJS += engines/net.o
2c0ecd28
JA
14
15all: depend $(PROGS) $(SCRIPTS)
16
c11883f7 17fio: $(OBJS)
871c0fc7 18 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
2c0ecd28
JA
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)