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, youcan 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.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229