ffz() takes ints, so change the file_map to being int based
[fio.git] / Makefile.solaris
1 CC      = gcc
2 CFLAGS  = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INC_DEBUG
3 PROGS   = fio
4 SCRIPTS = fio_generate_plots
5 OBJS = 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 \
7         rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o
8
9 OBJS += crc/crc7.o
10 OBJS += crc/crc16.o
11 OBJS += crc/crc32.o
12 OBJS += crc/crc64.o
13 OBJS += crc/sha256.o
14 OBJS += crc/sha512.o
15 OBJS += crc/md5.o
16
17 OBJS += engines/cpu.o
18 OBJS += engines/mmap.o
19 OBJS += engines/posixaio.o
20 OBJS += engines/sync.o
21 OBJS += engines/null.o
22 OBJS += engines/net.o
23
24 INSTALL = install
25 prefix = /usr/local
26 bindir = $(prefix)/bin
27 mandir = $(prefix)/man
28
29 %.o: %.c
30         $(CC) -o $*.o -c $(CFLAGS) $<
31 fio: $(OBJS)
32         $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket
33
34 all: $(PROGS) $(SCRIPTS)
35
36 clean:
37         -rm -f *.o .depend cscope.out $(PROGS) engines/*.o crc/*.o lib/*.o core.* core
38
39 cscope:
40         @cscope -b
41
42 install: $(PROGS) $(SCRIPTS)
43         $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
44         $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)