[PATCH] Remove the old job command line options
[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
6796209a 8fio: fio.o ioengines.o init.o stat.o log.o time.o md5.o crc32.o
ebac4655
JA
9 $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) -lpthread -laio -lm -lrt
10
11clean:
592ef98a 12 -rm -f *.o .depend cscope.out $(PROGS)
ebac4655
JA
13
14depend:
15 @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
16
592ef98a
JA
17cscope:
18 @cscope -b
19
ebac4655
JA
20INSTALL = install
21prefix = /usr/local
22bindir = $(prefix)/bin
23
24install: $(PROGS) $(SCRIPTS)
25 $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
26 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
27
28ifneq ($(wildcard .depend),)
29include .depend
30endif