From 65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Sun, 24 May 2020 12:09:46 +0200 Subject: Big remodelling --- 02_exercise/Makefile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 02_exercise/Makefile (limited to '02_exercise/Makefile') diff --git a/02_exercise/Makefile b/02_exercise/Makefile deleted file mode 100644 index 5d1b360..0000000 --- a/02_exercise/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) -- cgit v1.2.3-54-g00ecf