Remove gotos from read_iolog_get()
[fio.git] / Makefile.FreeBSD
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
3PROGS = fio
4SCRIPTS = fio_generate_plots
5OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
7 rbtree.o
8
9OBJS += engines/cpu.o
10OBJS += engines/mmap.o
11OBJS += engines/posixaio.o
12OBJS += engines/sync.o
13OBJS += engines/null.o
14OBJS += engines/net.o
15
16all: depend $(PROGS) $(SCRIPTS)
17
18fio: $(OBJS)
19 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm -ldl -lrt
20
21clean:
22 -rm -f *.o .depend cscope.out $(PROGS)
23
24depend:
25 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
26
27cscope:
28 @cscope -b
29
30INSTALL = install
31prefix = /usr/local
32bindir = $(prefix)/bin
33
34install: $(PROGS) $(SCRIPTS)
35 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
36 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)