Merge branch 'master' of ssh://router.home.kernel.dk/data/git/fio
[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
1fbbf72e 12
a432da1d
JA
13OBJS += crc/crc7.o
14OBJS += crc/crc16.o
15OBJS += crc/crc32.o
a6cee43d
JA
16OBJS += crc/crc32c.o
17OBJS += crc/crc32c-intel.o
a432da1d 18OBJS += crc/crc64.o
7c353ceb 19OBJS += crc/sha1.o
a432da1d
JA
20OBJS += crc/sha256.o
21OBJS += crc/sha512.o
22OBJS += crc/md5.o
23
f8fe35e8
JA
24OBJS += engines/cpu.o
25OBJS += engines/mmap.o
26OBJS += engines/posixaio.o
27OBJS += engines/sync.o
28OBJS += engines/null.o
ed92ac0c 29OBJS += engines/net.o
417f0068 30OBJS += engines/solarisaio.o
2c0ecd28 31
5921e80c
JA
32INSTALL = install
33prefix = /usr/local
34bindir = $(prefix)/bin
35mandir = $(prefix)/man
36
37%.o: %.c
38 $(CC) -o $*.o -c $(CFLAGS) $<
c11883f7 39fio: $(OBJS)
5921e80c 40 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
2c0ecd28 41
5921e80c 42all: $(PROGS) $(SCRIPTS)
2c0ecd28 43
5921e80c 44clean:
6492b1e5 45 -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core
2c0ecd28
JA
46
47cscope:
48 @cscope -b
49
2c0ecd28
JA
50install: $(PROGS) $(SCRIPTS)
51 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
52 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)