flushpl

LD_PRELOAD hook to force fflush
git clone https://git.sinitax.com/sinitax/flushpl
Log | Files | Refs | LICENSE | sfeed.txt

commit cb7abaeb03fcc46fa6b3e7f88be8518fd14de4e9
parent 2ee44627eff9037e50c4c508a1fcc83322850345
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed, 15 Feb 2023 19:14:52 +0100

Add targets to phony and remove useless test case

Diffstat:
MMakefile | 9++++++++-
Dtest.c | 7-------
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,12 @@ CFLAGS = -nostartfiles -fPIC -shared --std=gnu99 LDLIBS = -ldl +all: flush.so + +clean: + rm -f flush.so + flush.so: flush.c - $(CC) -o $@ $< $(CFLAGS) $(LDLIBS) + $(CC) -o $@ $^ $(CFLAGS) $(LDLIBS) + +.PHONY: all clean diff --git a/test.c b/test.c @@ -1,7 +0,0 @@ -#include <stdio.h> - -int -main() -{ - fwrite("Hello\n", 6, 1, stdout); -}