X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=Makefile;h=7686eb85a5b9d31d176ae026b550abc6bf4e5d30;hp=296655bcc8b604ed31f2ac03ea4f1e9b590c9207;hb=f7690c4ac0c9e7609ffdf8ed6255a64e1fa44606;hpb=2cac8fcb5ecaf5de549c36ee1cc2db75f00f8ff4 diff --git a/Makefile b/Makefile index 296655bc..7686eb85 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,13 @@ SOURCE := gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \ lib/rbtree.c smalloc.c filehash.c profile.c debug.c lib/rand.c \ lib/num2str.c lib/ieee754.c lib/strntol.c engines/cpu.c \ engines/mmap.c engines/sync.c engines/null.c engines/net.c \ - memalign.c server.c client.c iolog.c backend.c libfio.c flow.c \ + server.c client.c iolog.c backend.c libfio.c flow.c \ cconv.c lib/prio_tree.c lib/zipf.c lib/axmap.c lib/pattern.c \ lib/lfsr.c gettime-thread.c helpers.c lib/flist_sort.c json.c \ lib/hweight.c lib/getrusage.c idletime.c td_error.c \ profiles/tiobench.c profiles/act.c io_u_queue.c filelock.c \ lib/tp.c lib/bloom.c lib/gauss.c lib/mountcheck.c workqueue.c \ + lib/output_buffer.c lib/memalign.c \ $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) ifdef CONFIG_LIBHDFS @@ -104,6 +105,9 @@ endif ifndef CONFIG_STRCASESTR SOURCE += lib/strcasestr.c endif +ifndef CONFIG_STRLCAT + SOURCE += lib/strlcat.c +endif ifndef CONFIG_GETOPT_LONG_ONLY SOURCE += lib/getopt_long.c endif @@ -218,8 +222,8 @@ endif T_DEDUPE_OBJS = t/dedupe.o T_DEDUPE_OBJS += lib/rbtree.o t/log.o mutex.o smalloc.o gettime.o crc/md5.o \ - memalign.o lib/bloom.o t/debug.o crc/xxhash.o crc/murmur3.o \ - crc/crc32c.o crc/crc32c-intel.o crc/fnv.o + lib/memalign.o lib/bloom.o t/debug.o crc/xxhash.o \ + crc/murmur3.o crc/crc32c.o crc/crc32c-intel.o crc/fnv.o T_DEDUPE_PROGS = t/fio-dedupe T_OBJS = $(T_SMALLOC_OBJS) @@ -234,6 +238,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 endif T_TEST_PROGS = $(T_SMALLOC_PROGS) @@ -319,7 +324,14 @@ parse.o: lex.yy.o y.tab.o endif init.o: init.c FIO-VERSION-FILE + @mkdir -p $(dir $@) $(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $< + @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SRCDIR)/$*.c > $*.d + @mv -f $*.d $*.d.tmp + @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d + @sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | \ + sed -e 's/^ *//' -e 's/$$/:/' >> $*.d + @rm -f $*.d.tmp gcompat.o: gcompat.c gcompat.h $(QUIET_CC)$(CC) $(CFLAGS) $(GTK_CFLAGS) $(CPPFLAGS) -c $<