summaryrefslogtreecommitdiffstats
path: root/02_exercise/beispiele/pipe_example/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '02_exercise/beispiele/pipe_example/Makefile')
-rw-r--r--02_exercise/beispiele/pipe_example/Makefile18
1 files changed, 18 insertions, 0 deletions
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