Hi everybody,
Perhaps you can help me here.. I'm trying to compile.. something.
Anyway, I'm having a trouble with "No rule to make target ..." errors.
This is a sample makefile I copied from a website so it should be ok!
# makefile for GNU make (automatically generated by makemake)
# NOTE: indent with TAB in GNU makefiles!
# paths are relative to the project directory (current directory during make)
CC = gcc
CFLAGS = -g -O2
OBJECTS = strings.o utils.o
main.exe : $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) -o main.exe
%.o : %.c
$(CC) $(CFLAGS) -c $<
Those are TABs in my file, not spaces, of course.
I've also tried using ".cpp.o :" in place of "%.o : %.c"
It's complaining there's no rule for a .o file but it's clearly there....
Can anybody give any advice?
Thanks!