'No debugging symbols found with gdb debugger on raspberry pi 3

I'm working through a textbook and am trying to use the gdb debugger to create breakpoints in my code-named movexamps.s However, when using the gdb debugger I am met with (no debugging symbols from movexamps). Below is my makefile used to implement the debugger and create the object file for the code. If anything else is necessary to solve this problem please let me know and I will respond.

OBJS = movexamps.o
ifdef DEBUG
DEBUGFLGS = -g
else
DEBUGFLGS = 
endif
%.o : %.s
    as $(DEBUGFLGS) $< -o $@

movexamps: $(OBJS)
    ld -o movexamps $(OBJS)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source