X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=2ff88a1d4b4549837ea0ecd4ac8504636301874c;hb=57535f416523be18a928069903fae47c916a5a33;hp=066b240ca522ac369f7cd58bb0ad108403a34a5e;hpb=e2d539956d38677b7372cbef1b63596b92d2e86e;p=fio.git diff --git a/Makefile b/Makefile index 066b240c..2ff88a1d 100644 --- a/Makefile +++ b/Makefile @@ -36,11 +36,8 @@ ifdef CONFIG_GFIO PROGS += gfio endif -SOURCE := lib/rbtree.c lib/rand.c lib/num2str.c lib/ieee754.c \ - lib/strntol.c lib/prio_tree.c lib/zipf.c lib/axmap.c \ - lib/pattern.c lib/lfsr.c lib/flist_sort.c lib/hweight.c \ - lib/getrusage.c lib/tp.c lib/bloom.c lib/gauss.c \ - lib/mountcheck.c lib/output_buffer.c lib/memalign.c \ +SOURCE := $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \ + $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/lib/*.c)) \ gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \ eta.c verify.c memory.c io_u.c parse.c mutex.c options.c \ smalloc.c filehash.c profile.c debug.c engines/cpu.c \ @@ -48,8 +45,7 @@ SOURCE := lib/rbtree.c lib/rand.c lib/num2str.c lib/ieee754.c \ server.c client.c iolog.c backend.c libfio.c flow.c cconv.c \ gettime-thread.c helpers.c json.c idletime.c td_error.c \ profiles/tiobench.c profiles/act.c io_u_queue.c filelock.c \ - workqueue.c \ - $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) + workqueue.c rate-submit.c ifdef CONFIG_LIBHDFS HDFSFLAGS= -I $(JAVA_HOME)/include -I $(JAVA_HOME)/include/linux -I $(FIO_LIBHDFS_INCLUDE) @@ -101,19 +97,19 @@ ifdef CONFIG_RBD SOURCE += engines/rbd.c endif ifndef CONFIG_STRSEP - SOURCE += lib/strsep.c + SOURCE += oslib/strsep.c endif ifndef CONFIG_STRCASESTR - SOURCE += lib/strcasestr.c + SOURCE += oslib/strcasestr.c endif ifndef CONFIG_STRLCAT - SOURCE += lib/strlcat.c + SOURCE += oslib/strlcat.c endif ifndef CONFIG_GETOPT_LONG_ONLY - SOURCE += lib/getopt_long.c + SOURCE += oslib/getopt_long.c endif ifndef CONFIG_INET_ATON - SOURCE += lib/inet_aton.c + SOURCE += oslib/inet_aton.c endif ifdef CONFIG_GFAPI SOURCE += engines/glusterfs.c @@ -125,19 +121,19 @@ ifdef CONFIG_GFAPI endif ifdef CONFIG_MTD SOURCE += engines/mtd.c - SOURCE += lib/libmtd.c - SOURCE += lib/libmtd_legacy.c + SOURCE += oslib/libmtd.c + SOURCE += oslib/libmtd_legacy.c endif ifeq ($(CONFIG_TARGET_OS), Linux) SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c engines/sg.c \ - engines/binject.c lib/linux-dev-lookup.c + engines/binject.c oslib/linux-dev-lookup.c LIBS += -lpthread -ldl LDFLAGS += -rdynamic endif ifeq ($(CONFIG_TARGET_OS), Android) SOURCE += diskutil.c fifo.c blktrace.c trim.c profiles/tiobench.c \ - lib/linux-dev-lookup.c + oslib/linux-dev-lookup.c LIBS += -ldl LDFLAGS += -rdynamic endif @@ -217,7 +213,7 @@ T_LFSR_TEST_PROGS = t/lfsr-test ifeq ($(CONFIG_TARGET_OS), Linux) T_BTRACE_FIO_OBJS = t/btrace2fio.o -T_BTRACE_FIO_OBJS += fifo.o lib/flist_sort.o t/log.o lib/linux-dev-lookup.o +T_BTRACE_FIO_OBJS += fifo.o lib/flist_sort.o t/log.o oslib/linux-dev-lookup.o T_BTRACE_FIO_PROGS = t/fio-btrace2fio endif @@ -239,7 +235,7 @@ ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS))) T_DEDUPE_OBJS += os/windows/posix.o lib/hweight.o T_SMALLOC_OBJS += os/windows/posix.o lib/hweight.o T_LFSR_TEST_OBJS += os/windows/posix.o lib/hweight.o - T_ZIPF_OBJS += lib/strcasestr.o + T_ZIPF_OBJS += oslib/strcasestr.o endif T_TEST_PROGS = $(T_SMALLOC_PROGS) @@ -391,7 +387,7 @@ t/fio-dedupe: $(T_DEDUPE_OBJS) $(QUIET_LINK)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(T_DEDUPE_OBJS) $(LIBS) clean: FORCE - @rm -f .depend $(FIO_OBJS) $(GFIO_OBJS) $(OBJS) $(T_OBJS) $(PROGS) $(T_PROGS) $(T_TEST_PROGS) core.* core gfio FIO-VERSION-FILE *.d lib/*.d crc/*.d engines/*.d profiles/*.d t/*.d config-host.mak config-host.h y.tab.[ch] lex.yy.c exp/*.[do] lexer.h + @rm -f .depend $(FIO_OBJS) $(GFIO_OBJS) $(OBJS) $(T_OBJS) $(PROGS) $(T_PROGS) $(T_TEST_PROGS) core.* core gfio FIO-VERSION-FILE *.d lib/*.d oslib/*.d crc/*.d engines/*.d profiles/*.d t/*.d config-host.mak config-host.h y.tab.[ch] lex.yy.c exp/*.[do] lexer.h distclean: clean FORCE @rm -f cscope.out fio.pdf fio_generate_plots.pdf fio2gnuplot.pdf