Errors in MakeFile, target pattern contains no %

  c++

The error show ***target pattern contains no’%’. Stop.
I can’t solve the issue.
I have tried to edit the same solution from the internet and I cant save it. Am I doing anything wrong?

# Project: Project1
# Makefile created by Dev-C++ 5.4.1

CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
OBJ      = "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.o"
LINKOBJ  = "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.o"
LIBS     = -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/libglu32.a" "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/libglut32.a" "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/libopengl32.a" 
INCS     = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include"
CXXINCS  = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include"
BIN      = Project1.exe
CXXFLAGS = $(CXXINCS) 
CFLAGS   = $(INCS) 
RM       = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after


clean: clean-custom
    ${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.o": C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.cpp
    $(CPP) -c "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.cpp" -o "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/main.o" $(CXXFLAGS)

It says I have an error on line 25.

$(BIN): $(OBJ)

Source: Windows Questions C++

LEAVE A COMMENT