Make sure each job loads a private io engine
[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 \
2f79d99c 6 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o
c11883f7 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:
e9310e05 24 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
2c0ecd28
JA
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)