[vox-tech] help with a makefile

Mark K. Kim vox-tech@lists.lugod.org
Tue, 2 Apr 2002 13:57:00 -0800 (PST)


On Tue, 2 Apr 2002, Jeff Newmiller wrote:

>   %.o : %.c
>          $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o ./objs/$@
>
> would do it for you.

Shouldn't that be:

   ./objs/%.o : %.c
          $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

Not that I've tried it...

-Mark

--
Mark K. Kim
http://www.cbreak.org/
PGP key available upon request.