[PATCH] Improve time accounting for a job
[fio.git] / Makefile.FreeBSD
CommitLineData
32cd46a0
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 \
c11883f7
JA
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o
7
8OBJS += engines/fio-engine-cpu.o
9OBJS += engines/fio-engine-mmap.o
10OBJS += engines/fio-engine-posixaio.o
11OBJS += engines/fio-engine-sync.o
a94ea28b 12OBJS += engines/fio-engine-null.o
5c4e1dbc 13
32cd46a0
JA
14all: depend $(PROGS) $(SCRIPTS)
15
c11883f7 16fio: $(OBJS)
5c4e1dbc 17 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm
32cd46a0
JA
18
19clean:
20 -rm -f *.o .depend cscope.out $(PROGS)
21
22depend:
23 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
24
25cscope:
26 @cscope -b
27
28INSTALL = install
29prefix = /usr/local
30bindir = $(prefix)/bin
31
32install: $(PROGS) $(SCRIPTS)
33 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
34 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)