[PATCH] Size parse should use strtoll()
[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
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
5c4e1dbc 14
32cd46a0
JA
15all: depend $(PROGS) $(SCRIPTS)
16
c11883f7 17fio: $(OBJS)
871c0fc7 18 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm -ldl -lrt
32cd46a0
JA
19
20clean:
21 -rm -f *.o .depend cscope.out $(PROGS)
22
23depend:
24 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
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)