I am running into some linking errors when I try to compile a C++ program using a Makefile. I have checked out the documentation but it seems I am missing something and maybe someone can easily spot it out.Here is the Makefile
PHP Code:
target = main
CPPFLAGS += -Wall -Wextra -g
linker=ld
libs+=lsmfl-window -lsmfl-graphics
LDFLAGS+=$(libs)
$(target):main.o
$(CXX) $(LDGLAGS) $^ -o $@
main.o: main.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
.PHONY:clean
$(RM) -f *.o $(target)