Detect and print when the OS doesn't support huge pages
[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 \
4b87898e
JA
6 filesetup.o eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \
7 rbtree.o
c11883f7 8
f8fe35e8
JA
9OBJS += engines/cpu.o
10OBJS += engines/mmap.o
11OBJS += engines/posixaio.o
12OBJS += engines/sync.o
13OBJS += engines/null.o
ed92ac0c 14OBJS += engines/net.o
5c4e1dbc 15
32cd46a0
JA
16all: depend $(PROGS) $(SCRIPTS)
17
c11883f7 18fio: $(OBJS)
871c0fc7 19 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm -ldl -lrt
32cd46a0
JA
20
21clean:
22 -rm -f *.o .depend cscope.out $(PROGS)
23
24depend:
e9310e05 25 @$(CC) -MM $(ALL_CFLAGS) *.c engines/*.c 1> .depend
32cd46a0
JA
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)