blob: 3f654f02b860c66ccfe501a807c92b7522bf563d [file] [log] [blame]
Jens Axboe67bf9822013-01-10 11:23:19 +01001ifneq ($(wildcard config-host.mak),)
2all:
3include config-host.mak
4config-host-mak: configure
5 @echo $@ is out-of-date, running configure
6 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
7else
8config-host.mak:
Jens Axboed443abc2013-05-29 21:49:21 +02009ifneq ($(MAKECMDGOALS),clean)
Jens Axboe67bf9822013-01-10 11:23:19 +010010 @echo "Running configure for you..."
11 @./configure
Jens Axboed443abc2013-05-29 21:49:21 +020012endif
Jens Axboe67bf9822013-01-10 11:23:19 +010013all:
14include config-host.mak
15endif
16
Jens Axboeaf4862b2013-03-29 08:55:32 -060017DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
18CPPFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(DEBUGFLAGS)
19OPTFLAGS= -O3 -g -ffast-math
Jens Axboeeb199302013-04-17 10:54:53 -070020CFLAGS = -std=gnu99 -Wwrite-strings -Wall -Wdeclaration-after-statement $(OPTFLAGS) $(EXTFLAGS) $(BUILD_CFLAGS)
Jens Axboeaf4862b2013-03-29 08:55:32 -060021LIBS += -lm $(EXTLIBS)
22PROGS = fio
Erwan Velu265a2022013-08-07 15:32:02 +020023SCRIPTS = tools/fio_generate_plots tools/plot/fio2gnuplot tools/genfio
Jens Axboeaf4862b2013-03-29 08:55:32 -060024
Jens Axboe91f94d52013-01-24 10:25:42 -070025ifdef CONFIG_GFIO
26 PROGS += gfio
27endif
28
Jens Axboeea783f82013-04-05 12:54:03 +020029SOURCE := gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \
Bruce Crand015e392011-01-28 08:39:09 +010030 eta.c verify.c memory.c io_u.c parse.c mutex.c options.c \
Jens Axboe05775432012-03-21 14:07:11 +010031 lib/rbtree.c smalloc.c filehash.c profile.c debug.c lib/rand.c \
Jens Axboec7c6cb42011-10-13 14:12:40 +020032 lib/num2str.c lib/ieee754.c $(wildcard crc/*.c) engines/cpu.c \
Jens Axboed48a9792011-07-09 08:54:26 +020033 engines/mmap.c engines/sync.c engines/null.c engines/net.c \
Jens Axboe2dc1cbb2012-03-08 14:52:25 +010034 memalign.c server.c client.c iolog.c backend.c libfio.c flow.c \
Jens Axboe9a0db1e2012-12-03 14:38:08 +010035 cconv.c lib/prio_tree.c json.c lib/zipf.c lib/axmap.c \
Jens Axboe836fcc02013-01-24 09:08:45 -070036 lib/lfsr.c gettime-thread.c helpers.c lib/flist_sort.c \
Jens Axboed4afedf2013-05-22 22:21:29 +020037 lib/hweight.c lib/getrusage.c idletime.c td_error.c \
Jens Axboe2ae0b202013-05-28 14:16:55 +020038 profiles/tiobench.c profiles/act.c io_u_queue.c
Jens Axboe67bf9822013-01-10 11:23:19 +010039
Bruce Cranc81f9342013-01-13 17:09:22 +000040ifdef CONFIG_64BIT_LLP64
41 CFLAGS += -DBITS_PER_LONG=32
42endif
Jens Axboe67bf9822013-01-10 11:23:19 +010043ifdef CONFIG_64BIT
44 CFLAGS += -DBITS_PER_LONG=64
45endif
46ifdef CONFIG_32BIT
47 CFLAGS += -DBITS_PER_LONG=32
48endif
Jens Axboe67bf9822013-01-10 11:23:19 +010049ifdef CONFIG_LIBAIO
Jens Axboe67bf9822013-01-10 11:23:19 +010050 SOURCE += engines/libaio.c
51endif
52ifdef CONFIG_RDMA
Jens Axboe67bf9822013-01-10 11:23:19 +010053 SOURCE += engines/rdma.c
54endif
55ifdef CONFIG_POSIXAIO
Jens Axboe67bf9822013-01-10 11:23:19 +010056 SOURCE += engines/posixaio.c
57endif
58ifdef CONFIG_LINUX_FALLOCATE
59 SOURCE += engines/falloc.c
60endif
61ifdef CONFIG_LINUX_EXT4_MOVE_EXTENT
62 SOURCE += engines/e4defrag.c
63endif
64ifdef CONFIG_LINUX_SPLICE
Jens Axboe67bf9822013-01-10 11:23:19 +010065 SOURCE += engines/splice.c
66endif
67ifdef CONFIG_GUASI
Jens Axboe67bf9822013-01-10 11:23:19 +010068 SOURCE += engines/guasi.c
69endif
70ifdef CONFIG_FUSION_AW
Jens Axboe67bf9822013-01-10 11:23:19 +010071 SOURCE += engines/fusion-aw.c
72endif
73ifdef CONFIG_SOLARISAIO
Jens Axboe67bf9822013-01-10 11:23:19 +010074 SOURCE += engines/solarisaio.c
75endif
Jens Axboe4700b232013-01-24 15:33:33 -070076ifdef CONFIG_WINDOWSAIO
Jens Axboe4700b232013-01-24 15:33:33 -070077 SOURCE += engines/windowsaio.c
78endif
Jens Axboe67bf9822013-01-10 11:23:19 +010079ifndef CONFIG_STRSEP
Jens Axboe67bf9822013-01-10 11:23:19 +010080 SOURCE += lib/strsep.c
81endif
Jens Axboe9ad8da82013-04-05 14:44:03 +020082ifndef CONFIG_STRCASESTR
83 SOURCE += lib/strcasestr.c
84endif
Jens Axboe67bf9822013-01-10 11:23:19 +010085ifndef CONFIG_GETOPT_LONG_ONLY
Jens Axboe67bf9822013-01-10 11:23:19 +010086 SOURCE += lib/getopt_long.c
87endif
Jens Axboe67bf9822013-01-10 11:23:19 +010088ifndef CONFIG_INET_ATON
Jens Axboe67bf9822013-01-10 11:23:19 +010089 SOURCE += lib/inet_aton.c
90endif
Bruce Crand015e392011-01-28 08:39:09 +010091
Aaron Carroll53cd4ee2013-03-14 16:57:38 +110092ifeq ($(CONFIG_TARGET_OS), Linux)
Jens Axboe67bf9822013-01-10 11:23:19 +010093 SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c engines/sg.c \
Jens Axboed4afedf2013-05-22 22:21:29 +020094 engines/binject.c
Jens Axboe67bf9822013-01-10 11:23:19 +010095 LIBS += -lpthread -ldl
Jens Axboe213a01b2011-10-07 13:24:16 +020096 LDFLAGS += -rdynamic
Bruce Crand015e392011-01-28 08:39:09 +010097endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +110098ifeq ($(CONFIG_TARGET_OS), Android)
Jens Axboe67bf9822013-01-10 11:23:19 +010099 SOURCE += diskutil.c fifo.c blktrace.c trim.c profiles/tiobench.c
Aaron Carrollec5c6b12012-11-21 10:39:00 +0100100 LIBS += -ldl
101 LDFLAGS += -rdynamic
Aaron Carrollec5c6b12012-11-21 10:39:00 +0100102endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100103ifeq ($(CONFIG_TARGET_OS), SunOS)
Jens Axboe7366ad02013-02-28 20:34:31 +0100104 LIBS += -lpthread -ldl
Bruce Crand015e392011-01-28 08:39:09 +0100105 CPPFLAGS += -D__EXTENSIONS__
106endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100107ifeq ($(CONFIG_TARGET_OS), FreeBSD)
Bruce Crand015e392011-01-28 08:39:09 +0100108 LIBS += -lpthread -lrt
Jens Axboe213a01b2011-10-07 13:24:16 +0200109 LDFLAGS += -rdynamic
Bruce Crand015e392011-01-28 08:39:09 +0100110endif
John3cd4c662013-12-29 19:20:35 -0700111ifeq ($(CONFIG_TARGET_OS), OpenBSD)
112 LIBS += -lpthread
113 LDFLAGS += -rdynamic
114endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100115ifeq ($(CONFIG_TARGET_OS), NetBSD)
Bruce Crand015e392011-01-28 08:39:09 +0100116 LIBS += -lpthread -lrt
Jens Axboe213a01b2011-10-07 13:24:16 +0200117 LDFLAGS += -rdynamic
Bruce Crand015e392011-01-28 08:39:09 +0100118endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100119ifeq ($(CONFIG_TARGET_OS), AIX)
Bruce Crand015e392011-01-28 08:39:09 +0100120 LIBS += -lpthread -ldl -lrt
Bruce Crand015e392011-01-28 08:39:09 +0100121 CPPFLAGS += -D_LARGE_FILES -D__ppc__
Michael Perzl48b35be2011-07-13 20:28:07 +0200122 LDFLAGS += -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000
Bruce Crand015e392011-01-28 08:39:09 +0100123endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100124ifeq ($(CONFIG_TARGET_OS), HP-UX)
Jens Axboeb5ffb752011-07-09 13:28:19 +0200125 LIBS += -lpthread -ldl -lrt
Jens Axboe67bf9822013-01-10 11:23:19 +0100126 CFLAGS += -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE_EXTENDED
Jens Axboec00a2282011-07-08 20:56:06 +0200127endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100128ifeq ($(CONFIG_TARGET_OS), Darwin)
Bruce Crand015e392011-01-28 08:39:09 +0100129 LIBS += -lpthread -ldl
130endif
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100131ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS)))
Bruce Cran93bcfd22012-02-20 20:18:19 +0100132 SOURCE := $(filter-out engines/mmap.c,$(SOURCE))
Jens Axboe4700b232013-01-24 15:33:33 -0700133 SOURCE += os/windows/posix.c
Bruce Cran93bcfd22012-02-20 20:18:19 +0100134 LIBS += -lpthread -lpsapi -lws2_32
Bruce Cran9aa5fe32014-01-28 12:56:53 -0700135 CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format -static
Bruce Crand015e392011-01-28 08:39:09 +0100136endif
137
Bruce Cran9b836562011-01-08 19:49:54 +0100138OBJS = $(SOURCE:.c=.o)
Jens Axboe90b7a962013-02-04 12:51:09 +0100139
Stephen M. Cameron8232e282012-02-24 08:17:31 +0100140FIO_OBJS = $(OBJS) fio.o
Jens Axboe1252d8f2012-03-21 11:13:31 +0100141GFIO_OBJS = $(OBJS) gfio.o graph.o tickmarks.o ghelpers.o goptions.o gerror.o \
Stephen M. Cameronbf3f7022012-03-27 08:14:48 +0200142 gclient.o gcompat.o cairo_text_helpers.o printing.o
Jens Axboe79d16312010-03-04 12:43:20 +0100143
Jens Axboef67d6ee2013-02-01 15:51:23 +0100144-include $(OBJS:.o=.d)
Jens Axboe4c3ecec2008-03-01 16:20:13 +0100145
Jens Axboe61f78f32011-10-05 10:25:54 +0200146T_SMALLOC_OBJS = t/stest.o
Jens Axboe39ab7da2012-11-06 22:10:43 +0100147T_SMALLOC_OBJS += gettime.o mutex.o smalloc.o t/log.o
Jens Axboe61f78f32011-10-05 10:25:54 +0200148T_SMALLOC_PROGS = t/stest
149
150T_IEEE_OBJS = t/ieee754.o
Jens Axboe84f43c62012-03-31 16:02:08 -0700151T_IEEE_OBJS += lib/ieee754.o
Jens Axboe61f78f32011-10-05 10:25:54 +0200152T_IEEE_PROGS = t/ieee754
153
Jens Axboe6ff38852012-11-06 16:09:14 +0100154T_ZIPF_OBS = t/genzipf.o
Jens Axboe24baa4c2012-11-12 20:54:12 -0700155T_ZIPF_OBJS += t/log.o lib/ieee754.o lib/rand.o lib/zipf.o t/genzipf.o
Jens Axboeeed3f512012-11-07 13:40:01 +0100156T_ZIPF_PROGS = t/genzipf
Jens Axboe6ff38852012-11-06 16:09:14 +0100157
Jens Axboead1f90a2012-11-28 21:29:14 +0100158T_AXMAP_OBJS = t/axmap.o
159T_AXMAP_OBJS += lib/lfsr.o lib/axmap.o
160T_AXMAP_PROGS = t/axmap
161
Alex Pyrgiotis7a887ff2013-03-08 14:37:04 +0200162T_LFSR_TEST_OBJS = t/lfsr-test.o
163T_LFSR_TEST_OBJS += lib/lfsr.o
164T_LFSR_TEST_PROGS = t/lfsr-test
165
Jens Axboe61f78f32011-10-05 10:25:54 +0200166T_OBJS = $(T_SMALLOC_OBJS)
167T_OBJS += $(T_IEEE_OBJS)
Jens Axboe6ff38852012-11-06 16:09:14 +0100168T_OBJS += $(T_ZIPF_OBJS)
Jens Axboead1f90a2012-11-28 21:29:14 +0100169T_OBJS += $(T_AXMAP_OBJS)
Alex Pyrgiotis7a887ff2013-03-08 14:37:04 +0200170T_OBJS += $(T_LFSR_TEST_OBJS)
Jens Axboe6ff38852012-11-06 16:09:14 +0100171
172T_PROGS = $(T_SMALLOC_PROGS)
173T_PROGS += $(T_IEEE_PROGS)
174T_PROGS += $(T_ZIPF_PROGS)
Jens Axboead1f90a2012-11-28 21:29:14 +0100175T_PROGS += $(T_AXMAP_PROGS)
Alex Pyrgiotis7a887ff2013-03-08 14:37:04 +0200176T_PROGS += $(T_LFSR_TEST_PROGS)
Jens Axboe34272072011-08-16 10:01:03 +0200177
Jens Axboe4c3ecec2008-03-01 16:20:13 +0100178ifneq ($(findstring $(MAKEFLAGS),s),s)
179ifndef V
180 QUIET_CC = @echo ' ' CC $@;
Jens Axboe6ce038d2013-02-07 15:40:37 +0100181 QUIET_LINK = @echo ' ' LINK $@;
Jens Axboe0b2d6a72008-03-03 12:20:26 +0100182 QUIET_DEP = @echo ' ' DEP $@;
Jens Axboe4c3ecec2008-03-01 16:20:13 +0100183endif
184endif
185
Jens Axboea8168a22013-04-05 22:13:42 +0200186ifeq ($(CONFIG_TARGET_OS), SunOS)
187 INSTALL = ginstall
188else
189 INSTALL = install
190endif
Jens Axboec1d57252006-10-09 19:56:04 +0200191prefix = /usr/local
192bindir = $(prefix)/bin
Jens Axboebcdf7c52012-02-08 14:19:27 +0100193
Aaron Carroll53cd4ee2013-03-14 16:57:38 +1100194ifeq ($(CONFIG_TARGET_OS), Darwin)
Jens Axboebcdf7c52012-02-08 14:19:27 +0100195mandir = /usr/share/man
Erwan Velueab4af42013-07-30 11:45:18 +0200196sharedir = /usr/share/fio
Jens Axboebcdf7c52012-02-08 14:19:27 +0100197else
Aaron Carrolld60e92d2007-09-17 10:32:59 +0200198mandir = $(prefix)/man
Erwan Velueab4af42013-07-30 11:45:18 +0200199sharedir = $(prefix)/share/fio
Jens Axboebcdf7c52012-02-08 14:19:27 +0100200endif
Jens Axboec1d57252006-10-09 19:56:04 +0200201
Jens Axboef67d6ee2013-02-01 15:51:23 +0100202all: $(PROGS) $(SCRIPTS) FORCE
Michael Zappef84622e2011-06-01 20:15:18 +0200203
Jens Axboe3d433822012-03-21 22:25:22 +0100204.PHONY: all install clean
205.PHONY: FORCE cscope
206
207FIO-VERSION-FILE: FORCE
Bruce Cran84306c12012-04-16 19:33:03 +0200208 @$(SHELL) ./FIO-VERSION-GEN
Jens Axboe3d433822012-03-21 22:25:22 +0100209-include FIO-VERSION-FILE
210
David M. Lee7496ea32013-01-31 18:37:41 +0100211override CFLAGS += -DFIO_VERSION='"$(FIO_VERSION)"'
Jens Axboe3d433822012-03-21 22:25:22 +0100212
Jens Axboecb340b12013-02-05 11:03:12 +0100213.c.o: FORCE FIO-VERSION-FILE
Jens Axboe4feafb12013-01-24 23:07:55 -0700214 $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $<
Jens Axboef67d6ee2013-02-01 15:51:23 +0100215 @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $*.c > $*.d
216 @mv -f $*.d $*.d.tmp
217 @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
218 @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \
219 sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
220 @rm -f $*.d.tmp
Diego Elio Pettenòe52947d2011-03-21 20:13:53 +0100221
Jens Axboecb340b12013-02-05 11:03:12 +0100222init.o: FIO-VERSION-FILE init.c
Jens Axboe4feafb12013-01-24 23:07:55 -0700223 $(QUIET_CC)$(CC) -o init.o $(CFLAGS) $(CPPFLAGS) -c init.c
Jens Axboe32d4cc62012-04-13 14:06:08 +0200224
Jens Axboef762cef2012-03-26 13:51:11 +0200225gcompat.o: gcompat.c gcompat.h
226 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gcompat.c
227
Jens Axboe9af4a242012-03-16 10:13:49 +0100228goptions.o: goptions.c goptions.h
229 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c goptions.c
230
Jens Axboe53e0e852012-03-15 19:38:01 +0100231ghelpers.o: ghelpers.c ghelpers.h
232 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c ghelpers.c
233
Jens Axboe41666582012-03-21 10:25:29 +0100234gerror.o: gerror.c gerror.h
235 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gerror.c
236
Jens Axboe1252d8f2012-03-21 11:13:31 +0100237gclient.o: gclient.c gclient.h
238 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gclient.c
239
Jens Axboe53e0e852012-03-15 19:38:01 +0100240gfio.o: gfio.c ghelpers.c
Jens Axboe70d07ce2012-02-24 13:11:35 +0100241 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c gfio.c
242
Jens Axboe53e0e852012-03-15 19:38:01 +0100243graph.o: graph.c graph.h
Stephen M. Cameronaf58ef32012-03-07 07:56:16 +0100244 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c graph.c
245
Stephen M. Cameronee2f55b2012-03-27 08:14:09 +0200246cairo_text_helpers.o: cairo_text_helpers.c cairo_text_helpers.h
247 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c cairo_text_helpers.c
248
Stephen M. Cameronbf3f7022012-03-27 08:14:48 +0200249printing.o: printing.c printing.h
250 $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c printing.c
251
Jens Axboe61f78f32011-10-05 10:25:54 +0200252t/stest: $(T_SMALLOC_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600253 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_SMALLOC_OBJS) $(LIBS)
Jens Axboe61f78f32011-10-05 10:25:54 +0200254
255t/ieee754: $(T_IEEE_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600256 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_IEEE_OBJS) $(LIBS)
Jens Axboefbc27922011-08-16 09:56:27 +0200257
Jens Axboe33765372012-04-11 22:25:26 +0200258fio: $(FIO_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600259 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(FIO_OBJS) $(LIBS)
Jens Axboe4c3ecec2008-03-01 16:20:13 +0100260
Jens Axboe70d07ce2012-02-24 13:11:35 +0100261gfio: $(GFIO_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600262 $(QUIET_LINK)$(CC) $(LDFLAGS) -o gfio $(GFIO_OBJS) $(LIBS) $(GTK_LDFLAGS)
Jens Axboe70d07ce2012-02-24 13:11:35 +0100263
Jens Axboe6ff38852012-11-06 16:09:14 +0100264t/genzipf: $(T_ZIPF_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600265 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_ZIPF_OBJS) $(LIBS)
Jens Axboe6ff38852012-11-06 16:09:14 +0100266
Jens Axboead1f90a2012-11-28 21:29:14 +0100267t/axmap: $(T_AXMAP_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600268 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_AXMAP_OBJS) $(LIBS)
Jens Axboead1f90a2012-11-28 21:29:14 +0100269
Alex Pyrgiotis7a887ff2013-03-08 14:37:04 +0200270t/lfsr-test: $(T_LFSR_TEST_OBJS)
Grant Grundlera3c86fc2013-09-04 14:12:09 -0600271 $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_LFSR_TEST_OBJS) $(LIBS)
Alex Pyrgiotis7a887ff2013-03-08 14:37:04 +0200272
Jens Axboe3d433822012-03-21 22:25:22 +0100273clean: FORCE
Jens Axboe45f944b2013-04-27 15:51:25 -0600274 -rm -f .depend $(FIO_OBJS) $(GFIO_OBJS) $(OBJS) $(T_OBJS) $(PROGS) $(T_PROGS) core.* core gfio FIO-VERSION-FILE *.d config-host.mak config-host.h
275
276distclean: clean FORCE
277 @rm -f cscope.out
Jens Axboeebac4652005-12-08 15:25:21 +0100278
Jens Axboe592ef982006-06-06 20:58:57 +0200279cscope:
Jens Axboe366badd2010-07-19 16:18:35 -0600280 @cscope -b -R
Jens Axboe592ef982006-06-06 20:58:57 +0200281
Erwan Velu1378cc62013-08-07 16:02:25 +0200282tools/plot/fio2gnuplot.1:
283 @cat tools/plot/fio2gnuplot.manpage | txt2man -t fio2gnuplot > tools/plot/fio2gnuplot.1
284
285install: $(PROGS) $(SCRIPTS) tools/plot/fio2gnuplot.1 FORCE
Jens Axboe513ba3f2011-04-29 08:24:10 +0200286 $(INSTALL) -m 755 -d $(DESTDIR)$(bindir)
Jens Axboeebac4652005-12-08 15:25:21 +0100287 $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir)
Aaron Carrolld60e92d2007-09-17 10:32:59 +0200288 $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1
289 $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1
Erwan Velu0460eb92013-07-30 11:54:45 +0200290 $(INSTALL) -m 644 tools/fio_generate_plots.1 $(DESTDIR)$(mandir)/man1
Erwan Velu1378cc62013-08-07 16:02:25 +0200291 $(INSTALL) -m 644 tools/plot/fio2gnuplot.1 $(DESTDIR)$(mandir)/man1
Erwan Velueab4af42013-07-30 11:45:18 +0200292 $(INSTALL) -m 755 -d $(DESTDIR)$(sharedir)
293 $(INSTALL) -m 644 tools/plot/*gpm $(DESTDIR)$(sharedir)/