051501c445
Upstream changes according to the ChangeLog: - enhancement: added option --no-direct to disable use of O_DIRECT - defaults: raised default TCP timeout to 10ms for WAN connections - fix: leave TCP buffer size untouched if not set - enhancement: add option to set TCP timeout - performance optimization: use recv with MSG_WAITALL instead of read - configure fix: look for objdump also with target prefix - testing: make sure to use gtar for testing to avoid unexpected failures - portability: NetBSD compatibility fix - build enhancement: added dependency calculation for make - build enhancement: automatic version string generation PR: 252737 Submitted by: Fabian Keil <fk@fabiankeil.de>
41 lines
894 B
Makefile
41 lines
894 B
Makefile
--- Makefile.in.orig 2020-09-29 20:57:02 UTC
|
|
+++ Makefile.in
|
|
@@ -42,26 +42,19 @@ TAR = @TAR@
|
|
|
|
TARGET = mbuffer$(EXE)
|
|
SOURCES = log.c network.c mbuffer.c hashing.c input.c common.c settings.c globals.c
|
|
-OBJECTS = $(SOURCES:%.c=build/%.o)
|
|
-DEPS = $(SOURCES:%.c=build/%.d)
|
|
+OBJECTS = $(SOURCES:.c=.o)
|
|
|
|
TESTTREE = /bin /usr/bin
|
|
|
|
.PHONY: clean all distclean install check testcleanup
|
|
|
|
-all: $(TARGET) idev.so tapetest.so have-af
|
|
+all: $(TARGET) idev.so have-af
|
|
|
|
-$(OBJECTS): config.h Makefile
|
|
+$(OBJECTS): config.h version.h Makefile
|
|
|
|
build:
|
|
mkdir build
|
|
|
|
-build/%.o: %.c
|
|
- $(CC) $(CFLAGS) -c $< -o $@
|
|
-
|
|
-build/%.d: %.c
|
|
- $(CC) -MM -MG -MT $(@:%.d=%.o) $(CFLAGS) $< -o $@
|
|
-
|
|
always:
|
|
|
|
version.h: always
|
|
@@ -195,7 +188,3 @@ tapetest.so: tapetest.c config.h
|
|
|
|
idev.so: idev.c config.h
|
|
$(CC) $(CFLAGS) -shared -g -fPIC idev.c -o $@ $(LIBS)
|
|
-
|
|
-$(DEPS): | build
|
|
-
|
|
-include $(DEPS)
|