[PATCH] OS abstract out the random seed and value retrieval
[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
5
6all: depend $(PROGS) $(SCRIPTS)
7
8fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
9 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
10
11clean:
12 -rm -f *.o .depend cscope.out $(PROGS)
13
14depend:
15 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
16
17cscope:
18 @cscope -b
19
20INSTALL = install
21prefix = /usr/local
22bindir = $(prefix)/bin
23
24install: $(PROGS) $(SCRIPTS)
25 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
26 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)