unittests from makefile is done
This commit is contained in:
@@ -35,8 +35,20 @@ $(program_obj_filesobj_files): %.o: %.c
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
# --------------------------
|
||||
unitTests:
|
||||
echo "needs to be implemented"
|
||||
|
||||
unitTests: test_numbers test_stack
|
||||
|
||||
test_numbers: test_numbers.o stack.o bintree.o numbers.o
|
||||
$(CC) $(FLAGS) $^ -o test_numbers
|
||||
|
||||
test_numbers.o: test_numbers.c
|
||||
$(CC) -c $(FLAGS) $< -o $@
|
||||
|
||||
test_stack: test_stack.o stack.o
|
||||
$(CC) $(FLAGS) $^ -o test_stack
|
||||
|
||||
test_stack.o: test_stack.c
|
||||
$(CC) -c $(FLAGS) $< -o $@
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
|
||||
Reference in New Issue
Block a user