On Mon, Apr 11, 2005 at 12:37:34PM -0400, Dug Song wrote:
> > dnet_test.o: dnet_test.c
> > $(CC) $(CFLAGS) -c dnet_test.c -L/usr/arm-linux/lib -ldnet
>
> or
>
> > dnet_test.o: dnet_test.c
> > $(CC) $(CFLAGS) -c dnet_test.c /usr/arm-linux/lib/libdnet.a
>
> or
>
> > dnet_test.o: dnet_test.c
> > $(CC) `dnet-config --cflags` -c dnet_test.c `dnet-config --libs`
>
> if you've installed libdnet correctly.
oh hell, i didn't read your Makefile carefully. sorry, those are wrong
too. :-)
you can just do:
> dnet_test: dnet_test.c
> $(CC) `dnet-config --cflags` -o $@ $< `dnet-config --libs`
-d.
---
http://monkey.org/~dugsong/
|