From: Ulf M. <ulf...@ho...> - 2003-01-11 17:55:08
|
>From: Benjamin Riefenstahl <Ben...@ep...> >To: Min...@li... >Subject: Re: [Mingw-users] Makefile problems >Date: 11 Jan 2003 18:33:45 +0100 > >Hi Ulf, > > >"Ulf Magnusson" <ulf...@ho...> writes: > > With that I get the exact same problem as I've been having all > > along. When I run "make" it immediatly attempts a link (and fails, > > there are no object files). If I make it explicit through "make > > compile", it just says "Make: Nothing to be done for 'compile'" > >Move the OBJECTS definition to a place before its use. > >If I were you I'd also remove all the phony targets until I really >need them. A default target "$(EXENAME): $(OBJECTS)" is fine after >all. > > >so long, benny Heh, yeah, just discovered the (silly as usual) problem myself. What confused me was that the "Object" variable apperently was set "in time" to be correctly used in the "g++ .." command but not internally by make in the dependency section of the same rule Thanks all Ulf _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |