I’m attempting to use this makefile, and entered it in as it was given, but as it is below, it threw a “missing separator” error for line 2.
/usr/bin/gcc -pipe -Wall -O3 -fomit-frame-pointer -march=native pidigits.c -o pidigits.gcc_run -lgmp
rm pidigits.c
I looked that error up and added a tab before the ‘rm’ operator, but then it gave the “commands commence before first target” error.
I tried adding tabs before each line, as well as a tab before -pipe and before rm, but nothing works.
Any suggestions? I’m sure I’m just missing something blatantly obvious… this is my first time trying to write a makefile.
Thanks!
If I read this properly, you want your makefile to looke like:
Where \t is a tab.