--- 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)