I don't currently have access to Solaris ATM... alas, but perhaps it is something as simple as needing a blank line after each target:
CC = cc
run: driver.o
CC -o run driver.o
driver.o: driver.cpp
CC -c driver.cpp
BTW, you
can have tabs in the forum message boxes, but you have to cut and paste them in...

(So you can just cut and paste this code block into a file and it would work.)
The
CC is a makefile macro. Sun's compiler is "cc". (I think...)
Hope this helps.
Last edited by Duoas; Apr 9th, 2009 at 1:15 pm.
Reputation Points: 1140
Solved Threads: 229
Postaholic
Offline 2,039 posts
since Oct 2007