April 23rd, 2003, 09:19 PM
|
#2 (permalink)
|
| Member
Join Date: Feb 2002
Posts: 161
|
One rather annoying thing about makefiles is that there are certain places where you _must_ use tabs, not spaces. So the lines Code: ocsim: cpu.o driver.o
${LD} cpu.o driver.o -o ocsim must be written as Code: ocsim: cpu.o driver.o
(TAB GOES HERE!!!)${LD} cpu.o driver.o -o ocsim ... replacing the obvious text with a tab. The same thing applies to the other rules. Also, in your rule for driver.o, I think you want to say 'driver.cpp', and not 'driver'. |
| |