Implement stack, basic test program & makefile entry for the test
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user