[PATCH] Use mmap for mlocked memory
[fio.git] / Makefile
CommitLineData
ebac4655
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 fio-io.o fio-ini.o md5.o crc32.o
9 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
10
11clean:
12 -rm -f *.o .depend $(PROGS)
13
14depend:
15 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
16
17INSTALL = install
18prefix = /usr/local
19bindir = $(prefix)/bin
20
21install: $(PROGS) $(SCRIPTS)
22 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
23 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
24
25ifneq ($(wildcard .depend),)
26include .depend
27endif