From bd744a9b2969907c9196a9a7762681cf56139e4a Mon Sep 17 00:00:00 2001 From: whaffman Date: Sat, 18 Apr 2026 16:10:12 +0200 Subject: [PATCH] Ok lydiaaaa --- common.mk | 2 +- ex00/Makefile | 1 + ex01/Makefile | 1 + ex02/Makefile | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index 732934a..537ed73 100644 --- a/common.mk +++ b/common.mk @@ -12,7 +12,7 @@ INC = -I./inc VPATH = src -SRC = $(notdir $(wildcard src/*.cpp)) + OBJ = $(SRC:.cpp=.o) CC = c++ CFLAGS = -Wall -Wextra -Werror -std=c++20 -MMD diff --git a/ex00/Makefile b/ex00/Makefile index 7a9b379..5bbedd0 100644 --- a/ex00/Makefile +++ b/ex00/Makefile @@ -1,4 +1,5 @@ NAME := btc +SRC := main.cpp BitcoinExchange.cpp include ../common.mk run: all diff --git a/ex01/Makefile b/ex01/Makefile index 80d865b..aab51ae 100644 --- a/ex01/Makefile +++ b/ex01/Makefile @@ -1,4 +1,5 @@ NAME := RPN +SRC := main.cpp RPN.cpp include ../common.mk run: all diff --git a/ex02/Makefile b/ex02/Makefile index 9fc3694..cd5f620 100644 --- a/ex02/Makefile +++ b/ex02/Makefile @@ -1,4 +1,5 @@ -NAME = PmergeMe +NAME := PmergeMe +SRC := main.cpp Jacobstahl.cpp include ../common.mk run: all