[PATCH] String copy limiting fixes
[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
5c4e1dbc
JA
6OBJS = fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
7
32cd46a0
JA
8all: depend $(PROGS) $(SCRIPTS)
9
10fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
5c4e1dbc 11 $(CC) $(CFLAGS) -o $@ $(OBJS) -lpthread -lm
32cd46a0
JA
12
13clean:
14 -rm -f *.o .depend cscope.out $(PROGS)
15
16depend:
17 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
18
19cscope:
20 @cscope -b
21
22INSTALL = install
23prefix = /usr/local
24bindir = $(prefix)/bin
25
26install: $(PROGS) $(SCRIPTS)
27 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
28 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)