79175408

Date: 2024-11-10 17:50:13
Score: 1
Natty:
Report link

As @some-programmer-dude commented, I added both of the projects to the all command and now it is making both of the projects:

# Default target: build only the main program
all:$(MAIN_EXEC) $(TEST_EXEC)

# Build main program
$(MAIN_EXEC): $(MAIN_SRC)
    $(CXX) $(CXXFLAGS) -o $(MAIN_EXEC) $(MAIN_SRC)

# Build test program
# test: $(TEST_EXEC)

$(TEST_EXEC): $(TEST_SRC)
    $(CXX) $(CXXFLAGS) -o $(TEST_EXEC) $(TEST_SRC)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @some-programmer-dude
  • Self-answer (0.5):
Posted by: STF