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