Compilation optimization for easy debugging

Dear All,

I tried to remove compilation optimization to get easy the debbugging.
Unfortunately, i removed the wrong option -o in bootloader makefile here :

....
$(BUILD)/%.o : %.c
	$(ECHO) "CC $<"
	$(CC) $(CFLAGS) -c -o $@ $<
...

Now the compilation stops with missing separator in the main makefile in the directory /src.

Someone could help me to :

  • get the code working back
    correctly suppress the optimization code

Thanks for help,

Hi, don’t edit the Makefile, just use this:

make TARGET=OPENMV3 DEBUG=1