summaryrefslogtreecommitdiffstats
path: root/02_exercise/beispiele/pipe_example/Makefile
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-05-13 12:16:35 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-05-13 12:16:35 +0200
commit00dff9b1d9c3a20ce4b091e092d38f913479a5ac (patch)
tree4bc5a1af07c4e96d4354ce13a6a7fc62633a6b12 /02_exercise/beispiele/pipe_example/Makefile
parenta2ecab285195ff72fc2955b74f48751ab998809b (diff)
downloadbetriebssysteme-00dff9b1d9c3a20ce4b091e092d38f913479a5ac.tar.gz
betriebssysteme-00dff9b1d9c3a20ce4b091e092d38f913479a5ac.zip
Added all given material for exercise 2
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