How must I edit a Makefile for another compiler???
This is my second day that I work with Fedora Core 2.
Very well. I have installed a c-compiler, not the wellknown gcc but gcc34. Then I have this program. According to the README the first two lines of the Makefile must be edited before I can compile the program. These are the lines: CC=gcc OPT_FLAGS = -O2 -Wall The first line is obvious, it should look like this: CC=gcc34 But what must I do with the second line? This is the first time that I must edit in a makefile, I am still a newbie. Thanks in advance for your advices. Schmurff |
I assume this gcc34 is just a newer version of gcc, so it probably still uses many of the same options. You can probably compile just fine with the second line as-is (these might need to be changed if you were using, for example, a vendor's proprietary compiler that used different options).
|
I have tested it after editing the first line only to CC=gcc34. The compiler stopped:
# make Makefile:18: *** missing separator. Stop. After that I posted my question |
It is good to explain these things beforehand ;)
I think your text editor has changed the tab characters to spaces when you saved your changes. If you used vi/vim, load up the original Makefile again and before you save the file, use :set noexpandtab if you used another editor, you might need to find out what the right option is. or try a different editor. |
All times are GMT -5. The time now is 05:40 PM. |