[Zlib-devel] zlib 1.2.3.7 available for testing
Greg Roelofs
newt at pobox.com
Mon Jan 25 12:21:29 EST 2010
> But how do you tell it to put the objects into a subdirectory? (objs/,
> pics/)
The usual:
.c.o:
$(CC) -c $(CFLAGS) -o objs/$@ $*.c
.c.pic.o:
$(CC) -c $(CFLAGS) -o pics/$@ $*.c
...plus the requisite dependency rules. Of course, I haven't tested that
in quite a few years, so it's possible the implicit rule will get confused
by the subdirectories, but I don't _think_ that matters--implicit rules are
all about suffixes, not prefixes.
Cheers,
Greg
More information about the Zlib-devel
mailing list