[Zlib-devel] zlib 1.2.3.7 available for testing
Greg Roelofs
newt at pobox.com
Mon Jan 25 12:01:14 EST 2010
> This fixes the build problem on Solaris, but not on FreeBSD.
> On FreeBSD I still get:
> $ ./configure
> $ make
> make: don't know how to make objs/example.o. Stop
> Apparently BSD's make doesn't know about %.o: %.c rules :(
> Here is the manpage, but I couldn't figure how such a rule could be written:
> http://www.freebsd.org/cgi/man.cgi?query=make&sektion=1
# GNU make extension; shouldn't hurt others:
.SUFFIXES: .c .o .obj .pic.o
.c.o:
$(CC) -c $(CFLAGS) $*.c
.c.obj:
$(CC) -c $(CFLAGS) $*.c
.c.pic.o:
$(CC) -c $(CFLAGS) -o $@ $*.c
...or whatever. I believe "$<" also works in these implicit rules, though
not in general. (I'm not sure why we used "$*" instead of "$<" above...)
Greg
More information about the Zlib-devel
mailing list