uni

University stuff
git clone git://git.christosmarg.xyz/uni-assignments.git
Log | Files | Refs | README | LICENSE

commit 0d8935a6a3865e72f81644d6eb069fc3ff9efb4f
parent 6485c71e32ac0d2ea552c830c0f110f0d68b9f48
Author: Christos Margiolis <christos@margiolis.net>
Date:   Sun, 29 Dec 2019 23:10:05 +0200

added mkdir -p OBJ_DIR in makefile

Diffstat:
Massignment-1.4-functions/hanoi-tower/Makefile | 3+++
Massignment-1.4-functions/menu/Makefile | 3+++
Massignment-1.4-functions/sine-cos-taylor/Makefile | 3+++
3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/assignment-1.4-functions/hanoi-tower/Makefile b/assignment-1.4-functions/hanoi-tower/Makefile @@ -6,6 +6,8 @@ OBJ_DIR = obj SRC = $(wildcard $(SRC_DIR)/*.c) OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) +MKDIR_P = mkdir -p + CPPFLAGS += -Iinclude CFLAGS += -Wall LDFLAGS += -Llib @@ -19,6 +21,7 @@ $(EXEC): $(OBJ) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c + $(MKDIR_P) $(OBJ_DIR) $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ run: diff --git a/assignment-1.4-functions/menu/Makefile b/assignment-1.4-functions/menu/Makefile @@ -6,6 +6,8 @@ OBJ_DIR = obj SRC = $(wildcard $(SRC_DIR)/*.c) OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) +MKDIR_P = mkdir -p + CPPFLAGS += -Iinclude CFLAGS += -Wall LDFLAGS += -Llib @@ -19,6 +21,7 @@ $(EXEC): $(OBJ) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c + $(MKDIR_P) $(OBJ_DIR) $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ run: diff --git a/assignment-1.4-functions/sine-cos-taylor/Makefile b/assignment-1.4-functions/sine-cos-taylor/Makefile @@ -6,6 +6,8 @@ OBJ_DIR = obj SRC = $(wildcard $(SRC_DIR)/*.c) OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) +MKDIR_P = mkdir -p + CPPFLAGS += -Iinclude CFLAGS += -Wall LDFLAGS += -Llib @@ -19,6 +21,7 @@ $(EXEC): $(OBJ) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c + $(MKDIR_P) $(OBJ_DIR) $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ run: