solaris: log error for failure to enable direct IO
[fio.git] / Makefile.solaris
CommitLineData
2c0ecd28 1CC = gcc
5921e80c 2CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INC_DEBUG
2c0ecd28
JA
3PROGS = fio
4SCRIPTS = fio_generate_plots
a432da1d 5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o filesetup.o \
ff2e2231 6 eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
8e8af3c1
JA
7 rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o helpers.o solaris.o \
8 profile.o debug.o
c11883f7 9
1fbbf72e 10OBJS += lib/rand.o
d29cd59a 11OBJS += lib/flist_sort.o
1ec3d69b 12OBJS += lib/num2str.o
1fbbf72e 13
a432da1d
JA
14OBJS += crc/crc7.o
15OBJS += crc/crc16.o
16OBJS += crc/crc32.o
a6cee43d
JA
17OBJS += crc/crc32c.o
18OBJS += crc/crc32c-intel.o
a432da1d 19OBJS += crc/crc64.o
7c353ceb 20OBJS += crc/sha1.o
a432da1d
JA
21OBJS += crc/sha256.o
22OBJS += crc/sha512.o
23OBJS += crc/md5.o
24
f8fe35e8
JA
25OBJS += engines/cpu.o
26OBJS += engines/mmap.o
27OBJS += engines/posixaio.o
28OBJS += engines/sync.o
29OBJS += engines/null.o
ed92ac0c 30OBJS += engines/net.o
417f0068 31OBJS += engines/solarisaio.o
2c0ecd28 32
5921e80c
JA
33INSTALL = install
34prefix = /usr/local
35bindir = $(prefix)/bin
36mandir = $(prefix)/man
37
38%.o: %.c
39 $(CC) -o $*.o -c $(CFLAGS) $<
c11883f7 40fio: $(OBJS)
5921e80c 41 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
2c0ecd28 42
5921e80c 43all: $(PROGS) $(SCRIPTS)
2c0ecd28 44
5921e80c 45clean:
6492b1e5 46 -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core
2c0ecd28
JA
47
48cscope:
49 @cscope -b
50
2c0ecd28
JA
51install: $(PROGS) $(SCRIPTS)
52 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
53 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)