summaryrefslogtreecommitdiffstats
path: root/shell/beispiele/pipe_bidirect/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shell/beispiele/pipe_bidirect/Makefile')
-rw-r--r--shell/beispiele/pipe_bidirect/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/shell/beispiele/pipe_bidirect/Makefile b/shell/beispiele/pipe_bidirect/Makefile
new file mode 100644
index 0000000..361ac97
--- /dev/null
+++ b/shell/beispiele/pipe_bidirect/Makefile
@@ -0,0 +1,19 @@
+#!/usr/bin/make
+.SUFFIXES:
+
+CFLAGS = -c -Os -Wall -Werror
+
+%.o: %.c
+ $(CC) $(CFLAGS) $^ -o $@
+
+%: %.o
+ $(CC) -o $@ $^
+
+all: pingpong
+
+run: all
+ @echo "writing into log.txt; stop execution with CTRL+C"
+ ./pingpong
+
+clean:
+ $(RM) $(RMFILES) pingpong