Jens Axboe | 79e48f7 | 2008-02-01 20:37:09 +0100 | [diff] [blame] | 1 | DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG |
Jens Axboe | 44404c5 | 2013-01-24 14:20:09 -0700 | [diff] [blame] | 2 | CPPFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(DEBUGFLAGS) |
Jens Axboe | b14c9ed | 2013-01-08 13:41:35 +0100 | [diff] [blame] | 3 | OPTFLAGS= -O3 -g -ffast-math $(EXTFLAGS) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 4 | CFLAGS = -std=gnu99 -Wwrite-strings -Wall $(OPTFLAGS) |
Jens Axboe | 1b42725 | 2012-03-14 15:03:03 +0100 | [diff] [blame] | 5 | LIBS = -lm -lz $(EXTLIBS) |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 6 | PROGS = fio |
| 7 | SCRIPTS = fio_generate_plots |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 8 | UNAME := $(shell uname) |
| 9 | |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 10 | ifneq ($(wildcard config-host.mak),) |
| 11 | all: |
| 12 | include config-host.mak |
| 13 | config-host-mak: configure |
| 14 | @echo $@ is out-of-date, running configure |
| 15 | @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
| 16 | else |
| 17 | config-host.mak: |
| 18 | @echo "Running configure for you..." |
| 19 | @./configure |
| 20 | all: |
| 21 | include config-host.mak |
| 22 | endif |
| 23 | |
Jens Axboe | 91f94d5 | 2013-01-24 10:25:42 -0700 | [diff] [blame] | 24 | ifdef CONFIG_GFIO |
| 25 | PROGS += gfio |
| 26 | endif |
| 27 | |
Stephen M. Cameron | 8232e28 | 2012-02-24 08:17:31 +0100 | [diff] [blame] | 28 | SOURCE := gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \ |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 29 | eta.c verify.c memory.c io_u.c parse.c mutex.c options.c \ |
Jens Axboe | 0577543 | 2012-03-21 14:07:11 +0100 | [diff] [blame] | 30 | lib/rbtree.c smalloc.c filehash.c profile.c debug.c lib/rand.c \ |
Jens Axboe | c7c6cb4 | 2011-10-13 14:12:40 +0200 | [diff] [blame] | 31 | lib/num2str.c lib/ieee754.c $(wildcard crc/*.c) engines/cpu.c \ |
Jens Axboe | d48a979 | 2011-07-09 08:54:26 +0200 | [diff] [blame] | 32 | engines/mmap.c engines/sync.c engines/null.c engines/net.c \ |
Jens Axboe | 2dc1cbb | 2012-03-08 14:52:25 +0100 | [diff] [blame] | 33 | memalign.c server.c client.c iolog.c backend.c libfio.c flow.c \ |
Jens Axboe | 9a0db1e | 2012-12-03 14:38:08 +0100 | [diff] [blame] | 34 | cconv.c lib/prio_tree.c json.c lib/zipf.c lib/axmap.c \ |
Jens Axboe | 836fcc0 | 2013-01-24 09:08:45 -0700 | [diff] [blame] | 35 | lib/lfsr.c gettime-thread.c helpers.c lib/flist_sort.c \ |
Jens Axboe | 95820b6 | 2013-01-31 13:23:40 +0100 | [diff] [blame] | 36 | lib/hweight.c lib/getrusage.c idletime.c |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 37 | |
Bruce Cran | c81f934 | 2013-01-13 17:09:22 +0000 | [diff] [blame] | 38 | ifdef CONFIG_64BIT_LLP64 |
| 39 | CFLAGS += -DBITS_PER_LONG=32 |
| 40 | endif |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 41 | ifdef CONFIG_64BIT |
| 42 | CFLAGS += -DBITS_PER_LONG=64 |
| 43 | endif |
| 44 | ifdef CONFIG_32BIT |
| 45 | CFLAGS += -DBITS_PER_LONG=32 |
| 46 | endif |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 47 | ifdef CONFIG_LIBAIO |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 48 | SOURCE += engines/libaio.c |
| 49 | endif |
| 50 | ifdef CONFIG_RDMA |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 51 | SOURCE += engines/rdma.c |
| 52 | endif |
| 53 | ifdef CONFIG_POSIXAIO |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 54 | SOURCE += engines/posixaio.c |
| 55 | endif |
| 56 | ifdef CONFIG_LINUX_FALLOCATE |
| 57 | SOURCE += engines/falloc.c |
| 58 | endif |
| 59 | ifdef CONFIG_LINUX_EXT4_MOVE_EXTENT |
| 60 | SOURCE += engines/e4defrag.c |
| 61 | endif |
| 62 | ifdef CONFIG_LINUX_SPLICE |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 63 | SOURCE += engines/splice.c |
| 64 | endif |
| 65 | ifdef CONFIG_GUASI |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 66 | SOURCE += engines/guasi.c |
| 67 | endif |
| 68 | ifdef CONFIG_FUSION_AW |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 69 | SOURCE += engines/fusion-aw.c |
| 70 | endif |
| 71 | ifdef CONFIG_SOLARISAIO |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 72 | SOURCE += engines/solarisaio.c |
| 73 | endif |
Jens Axboe | 4700b23 | 2013-01-24 15:33:33 -0700 | [diff] [blame] | 74 | ifdef CONFIG_WINDOWSAIO |
Jens Axboe | 4700b23 | 2013-01-24 15:33:33 -0700 | [diff] [blame] | 75 | SOURCE += engines/windowsaio.c |
| 76 | endif |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 77 | ifndef CONFIG_STRSEP |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 78 | SOURCE += lib/strsep.c |
| 79 | endif |
| 80 | ifndef CONFIG_GETOPT_LONG_ONLY |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 81 | SOURCE += lib/getopt_long.c |
| 82 | endif |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 83 | ifndef CONFIG_INET_ATON |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 84 | SOURCE += lib/inet_aton.c |
| 85 | endif |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 86 | |
| 87 | ifeq ($(UNAME), Linux) |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 88 | SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c engines/sg.c \ |
| 89 | engines/binject.c profiles/tiobench.c |
| 90 | LIBS += -lpthread -ldl |
Jens Axboe | 213a01b | 2011-10-07 13:24:16 +0200 | [diff] [blame] | 91 | LDFLAGS += -rdynamic |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 92 | endif |
Aaron Carroll | ec5c6b1 | 2012-11-21 10:39:00 +0100 | [diff] [blame] | 93 | ifeq ($(UNAME), Android) |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 94 | SOURCE += diskutil.c fifo.c blktrace.c trim.c profiles/tiobench.c |
Aaron Carroll | ec5c6b1 | 2012-11-21 10:39:00 +0100 | [diff] [blame] | 95 | LIBS += -ldl |
| 96 | LDFLAGS += -rdynamic |
| 97 | CPPFLAGS += -DFIO_NO_HAVE_SHM_H |
| 98 | endif |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 99 | ifeq ($(UNAME), SunOS) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 100 | LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket |
| 101 | CPPFLAGS += -D__EXTENSIONS__ |
| 102 | endif |
| 103 | ifeq ($(UNAME), FreeBSD) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 104 | LIBS += -lpthread -lrt |
Jens Axboe | 213a01b | 2011-10-07 13:24:16 +0200 | [diff] [blame] | 105 | LDFLAGS += -rdynamic |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 106 | endif |
| 107 | ifeq ($(UNAME), NetBSD) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 108 | LIBS += -lpthread -lrt |
Jens Axboe | 213a01b | 2011-10-07 13:24:16 +0200 | [diff] [blame] | 109 | LDFLAGS += -rdynamic |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 110 | endif |
| 111 | ifeq ($(UNAME), AIX) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 112 | LIBS += -lpthread -ldl -lrt |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 113 | CPPFLAGS += -D_LARGE_FILES -D__ppc__ |
Michael Perzl | 48b35be | 2011-07-13 20:28:07 +0200 | [diff] [blame] | 114 | LDFLAGS += -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 115 | endif |
Jens Axboe | c00a228 | 2011-07-08 20:56:06 +0200 | [diff] [blame] | 116 | ifeq ($(UNAME), HP-UX) |
Jens Axboe | b5ffb75 | 2011-07-09 13:28:19 +0200 | [diff] [blame] | 117 | LIBS += -lpthread -ldl -lrt |
Jens Axboe | 67bf982 | 2013-01-10 11:23:19 +0100 | [diff] [blame] | 118 | CFLAGS += -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE_EXTENDED |
Jens Axboe | c00a228 | 2011-07-08 20:56:06 +0200 | [diff] [blame] | 119 | endif |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 120 | ifeq ($(UNAME), Darwin) |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 121 | LIBS += -lpthread -ldl |
| 122 | endif |
| 123 | ifneq (,$(findstring CYGWIN,$(UNAME))) |
Bruce Cran | 93bcfd2 | 2012-02-20 20:18:19 +0100 | [diff] [blame] | 124 | SOURCE := $(filter-out engines/mmap.c,$(SOURCE)) |
Jens Axboe | 4700b23 | 2013-01-24 15:33:33 -0700 | [diff] [blame] | 125 | SOURCE += os/windows/posix.c |
Bruce Cran | 93bcfd2 | 2012-02-20 20:18:19 +0100 | [diff] [blame] | 126 | LIBS += -lpthread -lpsapi -lws2_32 |
| 127 | CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format |
Bruce Cran | d015e39 | 2011-01-28 08:39:09 +0100 | [diff] [blame] | 128 | endif |
| 129 | |
Bruce Cran | 9b83656 | 2011-01-08 19:49:54 +0100 | [diff] [blame] | 130 | OBJS = $(SOURCE:.c=.o) |
Jens Axboe | 90b7a96 | 2013-02-04 12:51:09 +0100 | [diff] [blame^] | 131 | |
Stephen M. Cameron | 8232e28 | 2012-02-24 08:17:31 +0100 | [diff] [blame] | 132 | FIO_OBJS = $(OBJS) fio.o |
Jens Axboe | 1252d8f | 2012-03-21 11:13:31 +0100 | [diff] [blame] | 133 | GFIO_OBJS = $(OBJS) gfio.o graph.o tickmarks.o ghelpers.o goptions.o gerror.o \ |
Stephen M. Cameron | bf3f702 | 2012-03-27 08:14:48 +0200 | [diff] [blame] | 134 | gclient.o gcompat.o cairo_text_helpers.o printing.o |
Jens Axboe | 79d1631 | 2010-03-04 12:43:20 +0100 | [diff] [blame] | 135 | |
Jens Axboe | f67d6ee | 2013-02-01 15:51:23 +0100 | [diff] [blame] | 136 | -include $(OBJS:.o=.d) |
Jens Axboe | 4c3ecec | 2008-03-01 16:20:13 +0100 | [diff] [blame] | 137 | |
Jens Axboe | 61f78f3 | 2011-10-05 10:25:54 +0200 | [diff] [blame] | 138 | T_SMALLOC_OBJS = t/stest.o |
Jens Axboe | 39ab7da | 2012-11-06 22:10:43 +0100 | [diff] [blame] | 139 | T_SMALLOC_OBJS += gettime.o mutex.o smalloc.o t/log.o |
Jens Axboe | 61f78f3 | 2011-10-05 10:25:54 +0200 | [diff] [blame] | 140 | T_SMALLOC_PROGS = t/stest |
| 141 | |
| 142 | T_IEEE_OBJS = t/ieee754.o |
Jens Axboe | 84f43c6 | 2012-03-31 16:02:08 -0700 | [diff] [blame] | 143 | T_IEEE_OBJS += lib/ieee754.o |
Jens Axboe | 61f78f3 | 2011-10-05 10:25:54 +0200 | [diff] [blame] | 144 | T_IEEE_PROGS = t/ieee754 |
| 145 | |
Jens Axboe | 6ff3885 | 2012-11-06 16:09:14 +0100 | [diff] [blame] | 146 | T_ZIPF_OBS = t/genzipf.o |
Jens Axboe | 24baa4c | 2012-11-12 20:54:12 -0700 | [diff] [blame] | 147 | T_ZIPF_OBJS += t/log.o lib/ieee754.o lib/rand.o lib/zipf.o t/genzipf.o |
Jens Axboe | eed3f51 | 2012-11-07 13:40:01 +0100 | [diff] [blame] | 148 | T_ZIPF_PROGS = t/genzipf |
Jens Axboe | 6ff3885 | 2012-11-06 16:09:14 +0100 | [diff] [blame] | 149 | |
Jens Axboe | ad1f90a | 2012-11-28 21:29:14 +0100 | [diff] [blame] | 150 | T_AXMAP_OBJS = t/axmap.o |
| 151 | T_AXMAP_OBJS += lib/lfsr.o lib/axmap.o |
| 152 | T_AXMAP_PROGS = t/axmap |
| 153 | |
Jens Axboe | 61f78f3 | 2011-10-05 10:25:54 +0200 | [diff] [blame] | 154 | T_OBJS = $(T_SMALLOC_OBJS) |
| 155 | T_OBJS += $(T_IEEE_OBJS) |
Jens Axboe | 6ff3885 | 2012-11-06 16:09:14 +0100 | [diff] [blame] | 156 | T_OBJS += $(T_ZIPF_OBJS) |
Jens Axboe | ad1f90a | 2012-11-28 21:29:14 +0100 | [diff] [blame] | 157 | T_OBJS += $(T_AXMAP_OBJS) |
Jens Axboe | 6ff3885 | 2012-11-06 16:09:14 +0100 | [diff] [blame] | 158 | |
| 159 | T_PROGS = $(T_SMALLOC_PROGS) |
| 160 | T_PROGS += $(T_IEEE_PROGS) |
| 161 | T_PROGS += $(T_ZIPF_PROGS) |
Jens Axboe | ad1f90a | 2012-11-28 21:29:14 +0100 | [diff] [blame] | 162 | T_PROGS += $(T_AXMAP_PROGS) |
Jens Axboe | 3427207 | 2011-08-16 10:01:03 +0200 | [diff] [blame] | 163 | |
Jens Axboe | 4c3ecec | 2008-03-01 16:20:13 +0100 | [diff] [blame] | 164 | ifneq ($(findstring $(MAKEFLAGS),s),s) |
| 165 | ifndef V |
| 166 | QUIET_CC = @echo ' ' CC $@; |
Jens Axboe | 0b2d6a7 | 2008-03-03 12:20:26 +0100 | [diff] [blame] | 167 | QUIET_DEP = @echo ' ' DEP $@; |
Jens Axboe | 4c3ecec | 2008-03-01 16:20:13 +0100 | [diff] [blame] | 168 | endif |
| 169 | endif |
| 170 | |
Jens Axboe | c1d5725 | 2006-10-09 19:56:04 +0200 | [diff] [blame] | 171 | INSTALL = install |
| 172 | prefix = /usr/local |
| 173 | bindir = $(prefix)/bin |
Jens Axboe | bcdf7c5 | 2012-02-08 14:19:27 +0100 | [diff] [blame] | 174 | |
| 175 | ifeq ($(UNAME), Darwin) |
| 176 | mandir = /usr/share/man |
| 177 | else |
Aaron Carroll | d60e92d | 2007-09-17 10:32:59 +0200 | [diff] [blame] | 178 | mandir = $(prefix)/man |
Jens Axboe | bcdf7c5 | 2012-02-08 14:19:27 +0100 | [diff] [blame] | 179 | endif |
Jens Axboe | c1d5725 | 2006-10-09 19:56:04 +0200 | [diff] [blame] | 180 | |
Jens Axboe | f67d6ee | 2013-02-01 15:51:23 +0100 | [diff] [blame] | 181 | all: $(PROGS) $(SCRIPTS) FORCE |
Michael Zappe | f84622e | 2011-06-01 20:15:18 +0200 | [diff] [blame] | 182 | |
Jens Axboe | 3d43382 | 2012-03-21 22:25:22 +0100 | [diff] [blame] | 183 | .PHONY: all install clean |
| 184 | .PHONY: FORCE cscope |
| 185 | |
| 186 | FIO-VERSION-FILE: FORCE |
Bruce Cran | 84306c1 | 2012-04-16 19:33:03 +0200 | [diff] [blame] | 187 | @$(SHELL) ./FIO-VERSION-GEN |
Jens Axboe | 3d43382 | 2012-03-21 22:25:22 +0100 | [diff] [blame] | 188 | -include FIO-VERSION-FILE |
| 189 | |
David M. Lee | 7496ea3 | 2013-01-31 18:37:41 +0100 | [diff] [blame] | 190 | override CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"' |
Jens Axboe | 3d43382 | 2012-03-21 22:25:22 +0100 | [diff] [blame] | 191 | |
Jens Axboe | f67d6ee | 2013-02-01 15:51:23 +0100 | [diff] [blame] | 192 | .c.o: FORCE |
Jens Axboe | 4feafb1 | 2013-01-24 23:07:55 -0700 | [diff] [blame] | 193 | $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $< |
Jens Axboe | f67d6ee | 2013-02-01 15:51:23 +0100 | [diff] [blame] | 194 | @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $*.c > $*.d |
| 195 | @mv -f $*.d $*.d.tmp |
| 196 | @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d |
| 197 | @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \ |
| 198 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d |
| 199 | @rm -f $*.d.tmp |
Diego Elio Pettenò | e52947d | 2011-03-21 20:13:53 +0100 | [diff] [blame] | 200 | |
Jens Axboe | 32d4cc6 | 2012-04-13 14:06:08 +0200 | [diff] [blame] | 201 | init.o: FIO-VERSION-FILE |
Jens Axboe | 4feafb1 | 2013-01-24 23:07:55 -0700 | [diff] [blame] | 202 | $(QUIET_CC)$(CC) -o init.o $(CFLAGS) $(CPPFLAGS) -c init.c |
Jens Axboe | 32d4cc6 | 2012-04-13 14:06:08 +0200 | [diff] [blame] | 203 | |
Jens Axboe | f762cef | 2012-03-26 13:51:11 +0200 | [diff] [blame] | 204 | gcompat.o: gcompat.c gcompat.h |
| 205 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gcompat.c |
| 206 | |
Jens Axboe | 9af4a24 | 2012-03-16 10:13:49 +0100 | [diff] [blame] | 207 | goptions.o: goptions.c goptions.h |
| 208 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c goptions.c |
| 209 | |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 210 | ghelpers.o: ghelpers.c ghelpers.h |
| 211 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c ghelpers.c |
| 212 | |
Jens Axboe | 4166658 | 2012-03-21 10:25:29 +0100 | [diff] [blame] | 213 | gerror.o: gerror.c gerror.h |
| 214 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gerror.c |
| 215 | |
Jens Axboe | 1252d8f | 2012-03-21 11:13:31 +0100 | [diff] [blame] | 216 | gclient.o: gclient.c gclient.h |
| 217 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gclient.c |
| 218 | |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 219 | gfio.o: gfio.c ghelpers.c |
Jens Axboe | 70d07ce | 2012-02-24 13:11:35 +0100 | [diff] [blame] | 220 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gfio.c |
| 221 | |
Jens Axboe | 53e0e85 | 2012-03-15 19:38:01 +0100 | [diff] [blame] | 222 | graph.o: graph.c graph.h |
Stephen M. Cameron | af58ef3 | 2012-03-07 07:56:16 +0100 | [diff] [blame] | 223 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c graph.c |
| 224 | |
Stephen M. Cameron | ee2f55b | 2012-03-27 08:14:09 +0200 | [diff] [blame] | 225 | cairo_text_helpers.o: cairo_text_helpers.c cairo_text_helpers.h |
| 226 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c cairo_text_helpers.c |
| 227 | |
Stephen M. Cameron | bf3f702 | 2012-03-27 08:14:48 +0200 | [diff] [blame] | 228 | printing.o: printing.c printing.h |
| 229 | $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c printing.c |
| 230 | |
Jens Axboe | 61f78f3 | 2011-10-05 10:25:54 +0200 | [diff] [blame] | 231 | t/stest: $(T_SMALLOC_OBJS) |
| 232 | $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_SMALLOC_OBJS) $(LIBS) $(LDFLAGS) |
| 233 | |
| 234 | t/ieee754: $(T_IEEE_OBJS) |
| 235 | $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_IEEE_OBJS) $(LIBS) $(LDFLAGS) |
Jens Axboe | fbc2792 | 2011-08-16 09:56:27 +0200 | [diff] [blame] | 236 | |
Jens Axboe | 3376537 | 2012-04-11 22:25:26 +0200 | [diff] [blame] | 237 | fio: $(FIO_OBJS) |
Stephen M. Cameron | 8232e28 | 2012-02-24 08:17:31 +0100 | [diff] [blame] | 238 | $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(FIO_OBJS) $(LIBS) $(LDFLAGS) |
Jens Axboe | 4c3ecec | 2008-03-01 16:20:13 +0100 | [diff] [blame] | 239 | |
Jens Axboe | 70d07ce | 2012-02-24 13:11:35 +0100 | [diff] [blame] | 240 | gfio: $(GFIO_OBJS) |
| 241 | $(QUIET_CC)$(CC) $(LIBS) -o gfio $(GFIO_OBJS) $(LIBS) $(GTK_LDFLAGS) |
| 242 | |
Jens Axboe | 6ff3885 | 2012-11-06 16:09:14 +0100 | [diff] [blame] | 243 | t/genzipf: $(T_ZIPF_OBJS) |
| 244 | $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_ZIPF_OBJS) $(LIBS) $(LDFLAGS) |
| 245 | |
Jens Axboe | ad1f90a | 2012-11-28 21:29:14 +0100 | [diff] [blame] | 246 | t/axmap: $(T_AXMAP_OBJS) |
| 247 | $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_AXMAP_OBJS) $(LIBS) $(LDFLAGS) |
| 248 | |
Jens Axboe | 3d43382 | 2012-03-21 22:25:22 +0100 | [diff] [blame] | 249 | clean: FORCE |
Jens Axboe | 90b7a96 | 2013-02-04 12:51:09 +0100 | [diff] [blame^] | 250 | -rm -f .depend $(GFIO_OBJS) $(OBJS) $(T_OBJS) $(PROGS) $(T_PROGS) core.* core gfio FIO-VERSION-FILE config-host.mak cscope.out *.d |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 251 | |
Jens Axboe | 592ef98 | 2006-06-06 20:58:57 +0200 | [diff] [blame] | 252 | cscope: |
Jens Axboe | 366badd | 2010-07-19 16:18:35 -0600 | [diff] [blame] | 253 | @cscope -b -R |
Jens Axboe | 592ef98 | 2006-06-06 20:58:57 +0200 | [diff] [blame] | 254 | |
Jens Axboe | 3d43382 | 2012-03-21 22:25:22 +0100 | [diff] [blame] | 255 | install: $(PROGS) $(SCRIPTS) FORCE |
Jens Axboe | 513ba3f | 2011-04-29 08:24:10 +0200 | [diff] [blame] | 256 | $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) |
Jens Axboe | ebac465 | 2005-12-08 15:25:21 +0100 | [diff] [blame] | 257 | $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) |
Aaron Carroll | d60e92d | 2007-09-17 10:32:59 +0200 | [diff] [blame] | 258 | $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1 |
| 259 | $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1 |
Jens Axboe | ccd4f41 | 2009-05-20 11:36:39 +0200 | [diff] [blame] | 260 | $(INSTALL) -m 644 fio_generate_plots.1 $(DESTDIR)$(mandir)/man1 |