From e378fd8cbb69892d0af4110a7e3968d074700769 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 17 Jul 2026 20:32:44 +0200 Subject: Beispiel für gzip-Dateien hinzugefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 312721e..6ad412d 100644 --- a/makefile +++ b/makefile @@ -6,10 +6,13 @@ STREAM_OBJ_FILES=obj/stream.o SIMPLE=bin/simple SIMPLE_OBJ_FILES=obj/simple.o -release: $(STREAM) $(SIMPLE) +GZIP=bin/gzip +GZIP_OBJ_FILES=obj/gzip.o + +release: $(STREAM) $(SIMPLE) $(GZIP) release: CFLAGS+=-DNDEBUG -O2 -debug: $(STREAM) $(SIMPLE) +debug: $(STREAM) $(SIMPLE) $(GZIP) debug: CFLAGS+=-g $(STREAM): $(STREAM_OBJ_FILES) | bin @@ -18,6 +21,9 @@ $(STREAM): $(STREAM_OBJ_FILES) | bin $(SIMPLE): $(SIMPLE_OBJ_FILES) | bin cc $(LDFLAGS) $^ -o $@ +$(GZIP): $(GZIP_OBJ_FILES) | bin + cc $(LDFLAGS) $^ -o $@ + obj/%.o: src/%.c | obj cc $(CFLAGS) -c $< -o $@ -- cgit v1.3