mkae it nice

This commit is contained in:
whaffman 2025-03-21 14:57:55 +01:00
parent bbd3c46a34
commit 04a8ef186f
9 changed files with 38 additions and 17 deletions

View File

@ -1,16 +0,0 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++14",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}

35
Makefile Normal file
View File

@ -0,0 +1,35 @@
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: whaffman <whaffman@student.codam.nl> +#+ #
# +#+ #
# Created: 2025/03/21 14:50:00 by whaffman #+# #+# #
# Updated: 2025/03/21 14:55:52 by whaffman ######## odam.nl #
# #
# **************************************************************************** #
EX = ex00 ex01 ex02
all:
for ex in $(EX); do \
$(MAKE) -C $$ex; \
done
clean:
for ex in $(EX); do \
$(MAKE) -C $$ex clean; \
done
fclean:
for ex in $(EX); do \
$(MAKE) -C $$ex fclean; \
done
re:
for ex in $(EX); do \
$(MAKE) -C $$ex re; \
done
.PHONY: all clean fclean re

View File

@ -1,3 +1,5 @@
INC = -I./inc
VPATH = src
OBJ = $(SRC:.cpp=.o)
CC = c++
@ -8,7 +10,7 @@ $(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(NAME)
%.o: %.cpp
$(CC) $(CFLAGS) -c $< -o $@
$(CC) $(CFLAGS) $(INC) -c $< -o $@
clean:
rm -f $(OBJ)