Pretty up the good/bad block verify dumping
[fio.git] / Makefile.NetBSD
CommitLineData
7452440e
YT
1CC = gcc
2DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
9b836561 3CPPFLAGS= -D_GNU_SOURCE $(DEBUGFLAGS)
c2019d39 4OPTFLAGS= -O2 -fno-omit-frame-pointer -g $(EXTFLAGS)
9b836561
BC
5CFLAGS = -std=gnu99 -Wwrite-strings -Wall $(OPTFLAGS) -rdynamic
6LIBS = -lpthread -lm -lrt
7452440e
YT
7PROGS = fio
8SCRIPTS = fio_generate_plots
7452440e 9
9b836561
BC
10SOURCE = gettime.c fio.c ioengines.c init.c stat.c log.c time.c filesetup.c \
11 eta.c verify.c memory.c io_u.c parse.c mutex.c options.c rbtree.c \
12 smalloc.c filehash.c helpers.c profile.c debug.c lib/rand.c \
13 lib/flist_sort.c lib/num2str.c $(wildcard crc/*.c) engines/cpu.c \
14 engines/mmap.c engines/posixaio.c engines/sync.c engines/null.c \
15 engines/net.c
16
17OBJS = $(SOURCE:.c=.o)
7452440e
YT
18
19ifneq ($(findstring $(MAKEFLAGS),s),s)
20ifndef V
21 QUIET_CC = @echo ' ' CC $@;
22 QUIET_DEP = @echo ' ' DEP $@;
23endif
24endif
25
26INSTALL = install
27prefix = /usr/local
28bindir = $(prefix)/bin
29mandir = $(prefix)/man
30
9b836561
BC
31.c.o:
32 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $<
33
7452440e 34fio: $(OBJS)
9b836561 35 $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(LIBS) $(OBJS)
7452440e
YT
36
37depend:
9b836561 38 $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend
7452440e
YT
39
40$(PROGS): depend
41
42all: depend $(PROGS) $(SCRIPTS)
43
44clean:
45 -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core
46
47cscope:
48 @cscope -b
49
50install: $(PROGS) $(SCRIPTS)
51 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
52 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
53 $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
54 $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1
55 $(INSTALL) -m 644 fio_generate_plots.1 $(DESTDIR)$(mandir)/man1
56
57ifneq ($(wildcard .depend),)
58include .depend
59endif