[PATCH] Get rid of FIO_INST_PREFIX
[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
5
6OBJS = fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o \
7 filesetup.o eta.o verify.o memory.o io_u.o parse.o
8
9OBJS += engines/fio-engine-cpu.o
10OBJS += engines/fio-engine-mmap.o
11OBJS += engines/fio-engine-posixaio.o
12OBJS += engines/fio-engine-sync.o
13
14all: depend $(PROGS) $(SCRIPTS)
15
16fio: $(OBJS)
17 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm
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)