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 \ |
8e8af3c1 JA |
7 | rbtree.o fifo.o smalloc.o filehash.o lib/strsep.o helpers.o solaris.o \ |
8 | profile.o debug.o | |
c11883f7 | 9 | |
a432da1d JA |
10 | OBJS += crc/crc7.o |
11 | OBJS += crc/crc16.o | |
12 | OBJS += crc/crc32.o | |
a6cee43d JA |
13 | OBJS += crc/crc32c.o |
14 | OBJS += crc/crc32c-intel.o | |
a432da1d | 15 | OBJS += crc/crc64.o |
7c353ceb | 16 | OBJS += crc/sha1.o |
a432da1d JA |
17 | OBJS += crc/sha256.o |
18 | OBJS += crc/sha512.o | |
19 | OBJS += crc/md5.o | |
20 | ||
f8fe35e8 JA |
21 | OBJS += engines/cpu.o |
22 | OBJS += engines/mmap.o | |
23 | OBJS += engines/posixaio.o | |
24 | OBJS += engines/sync.o | |
25 | OBJS += engines/null.o | |
ed92ac0c | 26 | OBJS += engines/net.o |
417f0068 | 27 | OBJS += engines/solarisaio.o |
2c0ecd28 | 28 | |
5921e80c JA |
29 | INSTALL = install |
30 | prefix = /usr/local | |
31 | bindir = $(prefix)/bin | |
32 | mandir = $(prefix)/man | |
33 | ||
34 | %.o: %.c | |
35 | $(CC) -o $*.o -c $(CFLAGS) $< | |
c11883f7 | 36 | fio: $(OBJS) |
5921e80c | 37 | $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTLIBS) -lpthread -lm -ldl -laio -lrt -lnsl -lsocket |
2c0ecd28 | 38 | |
5921e80c | 39 | all: $(PROGS) $(SCRIPTS) |
2c0ecd28 | 40 | |
5921e80c | 41 | clean: |
6492b1e5 | 42 | -rm -f .depend cscope.out $(OBJS) $(PROGS) core.* core |
2c0ecd28 JA |
43 | |
44 | cscope: | |
45 | @cscope -b | |
46 | ||
2c0ecd28 JA |
47 | install: $(PROGS) $(SCRIPTS) |
48 | $(INSTALL) -m755 -d $(DESTDIR)$(bindir) | |
49 | $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) |