%% Frederic Bonneaudeau 57 18 <[EMAIL PROTECTED]> writes:
fb51> Why this Makefile got an error on it ?
fb51> This Makefile works on most Unix Systems.
Well, I'm not sure I'd agree with "_most_ UNIX systems", but...
fb51> $(COBJS) : $$(@F:$(EXT).o=.c)
^^^^
At any rate, GNU make doesn't support this construct ($$@, etc.)
See the chapter in the GNU make manual "Incompatibilities and Missing
Features". As described there, your example can be trivially rewritten
to use GNU make's static pattern rules instead:
$(COBJS) : %$(EXT).o : %.c
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.