Commit | Line | Data |
---|---|---|
2c0ecd28 | 1 | CC = gcc |
5921e80c | 2 | CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INC_DEBUG |
2c0ecd28 JA |
3 | PROGS = fio |
4 | SCRIPTS = fio_generate_plots | |
a432da1d | 5 | OBJS = gettime.o fio.o ioengines.o init.o stat.o log.o time.o filesetup.o \ |
ff2e2231 | 6 | eta.o verify.o memory.o io_u.o parse.o mutex.o options.o \ |
72c234e5 | 7 | rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o |
c11883f7 | 8 | |
a432da1d JA |
9 | OBJS += crc/crc7.o |
10 | OBJS += crc/crc16.o | |
11 | OBJS += crc/crc32.o | |
12 | OBJS += crc/crc64.o | |
13 | OBJS += crc/sha256.o | |
14 | OBJS += crc/sha512.o | |
15 | OBJS += crc/md5.o | |
16 | ||
f8fe35e8 JA |
17 | OBJS += engines/cpu.o |
18 | OBJS += engines/mmap.o | |
19 | OBJS += engines/posixaio.o | |
20 | OBJS += engines/sync.o | |
21 | OBJS += engines/null.o | |
ed92ac0c | 22 | OBJS += engines/net.o |
417f0068 | 23 | OBJS += engines/solarisaio.o |
2c0ecd28 | 24 | |
5921e80c JA |
25 | INSTALL = install |
26 | prefix = /usr/local | |
27 | bindir = $(prefix)/bin | |
28 | mandir = $(prefix)/man | |
29 | ||
30 | %.o: %.c | |
31 | $(CC) -o $*.o -c $(CFLAGS) $< | |
c11883f7 | 32 | fio: $(OBJS) |
5921e80c | 33 | $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket |
2c0ecd28 | 34 | |
5921e80c | 35 | all: $(PROGS) $(SCRIPTS) |
2c0ecd28 | 36 | |
5921e80c | 37 | clean: |
6492b1e5 | 38 | -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core |
2c0ecd28 JA |
39 | |
40 | cscope: | |
41 | @cscope -b | |
42 | ||
2c0ecd28 JA |
43 | install: $(PROGS) $(SCRIPTS) |
44 | $(INSTALL) -m755 -d $(DESTDIR)$(bindir) | |
45 | $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) |