Add support for blkio cgroups on Linux
[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 \
ed80ddf6 7 rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o helpers.o
c11883f7 8
a432da1d
JA
9OBJS += crc/crc7.o
10OBJS += crc/crc16.o
11OBJS += crc/crc32.o
a6cee43d
JA
12OBJS += crc/crc32c.o
13OBJS += crc/crc32c-intel.o
a432da1d 14OBJS += crc/crc64.o
7c353ceb 15OBJS += crc/sha1.o
a432da1d
JA
16OBJS += crc/sha256.o
17OBJS += crc/sha512.o
18OBJS += crc/md5.o
19
f8fe35e8
JA
20OBJS += engines/cpu.o
21OBJS += engines/mmap.o
22OBJS += engines/posixaio.o
23OBJS += engines/sync.o
24OBJS += engines/null.o
ed92ac0c 25OBJS += engines/net.o
417f0068 26OBJS += engines/solarisaio.o
2c0ecd28 27
5921e80c
JA
28INSTALL = install
29prefix = /usr/local
30bindir = $(prefix)/bin
31mandir = $(prefix)/man
32
33%.o: %.c
34 $(CC) -o $*.o -c $(CFLAGS) $<
c11883f7 35fio: $(OBJS)
5921e80c 36 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
2c0ecd28 37
5921e80c 38all: $(PROGS) $(SCRIPTS)
2c0ecd28 39
5921e80c 40clean:
6492b1e5 41 -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core
2c0ecd28
JA
42
43cscope:
44 @cscope -b
45
2c0ecd28
JA
46install: $(PROGS) $(SCRIPTS)
47 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
48 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)