From 07262a1fe04ff009f38d30fb6aa2587c1e7a76a8 Mon Sep 17 00:00:00 2001 From: Simon Wiesend Date: Sat, 29 Nov 2025 21:25:04 +0100 Subject: [PATCH] fix makefile to allow debugging --- makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index c4c6314..cb05ca2 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ CC = gcc -FLAGS = -g -Wall -lm +CFLAGS = -g -Wall -lm ifeq ($(OS),Windows_NT) include makefile_windows.variables @@ -27,10 +27,10 @@ doble_initial: program_obj_files = stack.o bintree.o numbers.o timer.o highscore.o doble : main.o $(program_obj_files) - $(CC) $(FLAGS) $^ -o doble + $(CC) $(CFLAGS) $^ -o doble -$(program_obj_filesobj_files): %.o: %.c - $(CC) -c $(FLAGS) $^ -o $@ +$(program_obj_files): %.o: %.c + $(CC) -c $(CFLAGS) $^ -o $@ # -------------------------- # Unit Tests @@ -39,11 +39,11 @@ TEST_STACK_SOURCES = stack.c test_stack.c $(unityfolder)/unity.c TEST_BINTREE_SOURCES = bintree.c test_bintree.c stack.c $(unityfolder)/unity.c stackTests: $(TEST_STACK_SOURCES) stack.h - $(CC) $(FLAGS) -I$(unityfolder) $(TEST_STACK_SOURCES) -o runStackTests + $(CC) $(CFLAGS) -I$(unityfolder) $(TEST_STACK_SOURCES) -o runStackTests ./runStackTests bintreeTests: $(TEST_BINTREE_SOURCES) stack.h bintree.h - $(CC) $(FLAGS) -I$(unityfolder) $(TEST_BINTREE_SOURCES) -o runBintreeTests + $(CC) $(CFLAGS) -I$(unityfolder) $(TEST_BINTREE_SOURCES) -o runBintreeTests ./runBintreeTests # --------------------------