summaryrefslogtreecommitdiffstats
path: root/shell/Makefile
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-05-24 12:19:52 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-05-24 12:19:52 +0200
commit04576dc2a3f761eb041b808b56f13a58052e7655 (patch)
treec6bed6db34e29f0dec0c844fbc931b3dd4fab8db /shell/Makefile
parent65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a (diff)
downloadbetriebssysteme-04576dc2a3f761eb041b808b56f13a58052e7655.tar.gz
betriebssysteme-04576dc2a3f761eb041b808b56f13a58052e7655.zip
Moved back to 02_exercise
Diffstat (limited to 'shell/Makefile')
-rw-r--r--shell/Makefile32
1 files changed, 0 insertions, 32 deletions
diff --git a/shell/Makefile b/shell/Makefile
deleted file mode 100644
index 5d1b360..0000000
--- a/shell/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/make
-.SUFFIXES:
-.PHONY: all run pack clean
-TAR = shell prog
-SRC = $(wildcard *.c)
-OBJ = $(SRC:%.c=%.o)
-PCK = lab-2.zip
-
-CFLAGS = -std=gnu11 -c -g -Os -Wall -Werror -MMD -MP -D=_GNU_SOURCE
-
-DEP = $(OBJ:%.o=%.d)
--include $(DEP)
-
-%.o: %.c
- $(CC) $(CFLAGS) $< -o $@
-
-all: $(TAR)
-
-prog: prog.o
- $(CC) -o $@ $^
-
-shell: $(filter-out prog.o,$(OBJ))
- $(CC) -o $@ $^
-
-run: all
- ./shell
-
-pack:
- zip $(PCK) $(SRC) $(wildcard *.h) Makefile
-
-clean:
- $(RM) $(RMFILES) $(TAR) $(OBJ) $(DEP) $(PCK)