Merge branch 'master' of ssh://router/data/git/fio
[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
a432da1d
JA
5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o filesetup.o \
6 eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
4b87898e 7 rbtree.o
c11883f7 8
a432da1d
JA
9OBJS += crc/crc7.o
10OBJS += crc/crc16.o
11OBJS += crc/crc32.o
12OBJS += crc/crc64.o
13OBJS += crc/sha256.o
14OBJS += crc/sha512.o
15OBJS += crc/md5.o
16
f8fe35e8
JA
17OBJS += engines/cpu.o
18OBJS += engines/mmap.o
19OBJS += engines/posixaio.o
20OBJS += engines/sync.o
21OBJS += engines/null.o
ed92ac0c 22OBJS += engines/net.o
2c0ecd28
JA
23
24all: depend $(PROGS) $(SCRIPTS)
25
c11883f7 26fio: $(OBJS)
871c0fc7 27 $(CC) $(CFLAGS) -o $@ $(OBJS) -lc -lpthread -lm -laio -lrt -ldl
2c0ecd28
JA
28
29clean:
30 -rm -f *.o .depend cscope.out $(PROGS)
31
32depend:
e9310e05 33 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
2c0ecd28
JA
34
35cscope:
36 @cscope -b
37
38INSTALL = install
39prefix = /usr/local
40bindir = $(prefix)/bin
41
42install: $(PROGS) $(SCRIPTS)
43 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
44 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)