[Zlib-devel] zlib 1.2.3.7 available for testing
Török Edwin
edwintorok at gmail.com
Mon Jan 25 12:04:25 EST 2010
On 01/25/2010 07:01 PM, Greg Roelofs wrote:
>> 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...)
>
But how do you tell it to put the objects into a subdirectory? (objs/,
pics/)
Best regards,
--Edwin
More information about the Zlib-devel
mailing list