summaryrefslogtreecommitdiffstats
path: root/02_exercise/beispiele/fork_signal/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '02_exercise/beispiele/fork_signal/Makefile')
-rw-r--r--02_exercise/beispiele/fork_signal/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/02_exercise/beispiele/fork_signal/Makefile b/02_exercise/beispiele/fork_signal/Makefile
new file mode 100644
index 0000000..499b8cb
--- /dev/null
+++ b/02_exercise/beispiele/fork_signal/Makefile
@@ -0,0 +1,19 @@
+#!/usr/bin/make
+.SUFFIXES:
+
+CFLAGS = -c -O0
+
+%.o: %.c
+ $(CC) $(CFLAGS) $^ -o $@
+
+%: %.o
+ $(CC) -o $@ $^
+
+all: fork signal
+
+run: all
+ ./fork 10
+ ./signal
+
+clean:
+ $(RM) $(RMFILES) fork signal