From 04576dc2a3f761eb041b808b56f13a58052e7655 Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Sun, 24 May 2020 12:19:52 +0200 Subject: Moved back to 02_exercise --- 02_exercise/beispiele/pipe_example/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 02_exercise/beispiele/pipe_example/Makefile (limited to '02_exercise/beispiele/pipe_example/Makefile') diff --git a/02_exercise/beispiele/pipe_example/Makefile b/02_exercise/beispiele/pipe_example/Makefile new file mode 100644 index 0000000..d69473e --- /dev/null +++ b/02_exercise/beispiele/pipe_example/Makefile @@ -0,0 +1,18 @@ +#!/usr/bin/make +.SUFFIXES: + +CFLAGS = -c -Os -Wall -Werror + +%.o: %.c + $(CC) $(CFLAGS) $^ -o $@ + +%: %.o + $(CC) -o $@ $^ + +all: pipe + +run: all + ./pipe + +clean: + $(RM) $(RMFILES) pipe -- cgit v1.2.3-54-g00ecf