Implement stack, basic test program & makefile entry for the test

This commit is contained in:
2025-11-23 16:07:25 +01:00
parent cb034be9f9
commit 2c10463852
4 changed files with 122 additions and 8 deletions
+8 -2
View File
@@ -30,8 +30,14 @@ doble : main.o $(program_obj_files)
$(CC) $(FLAGS) $^ -o doble
$(program_obj_filesobj_files): %.o: %.c
$(CC) -c $(FLAGS) $^ -o $@
$(CC) -c $(FLAGS) -g3 -fPIC $^ -o $@
# --------------------------
# Stack Tests
# --------------------------
stackTests : stack.o test_stack.c
$(CC) $(FLAGS) -g3 $^ -o stackTest
# --------------------------
# Unit Tests
# --------------------------
@@ -46,4 +52,4 @@ ifeq ($(OS),Windows_NT)
del /f *.o doble
else
rm -f *.o doble
endif
endif