I have the following situation: I am developing a package which depends on headers and libraries provided by another package (libnl).
I've indicated the dependency in the Makefile, so libnl is automatically built and installed when I build my package. So far, so good. Here's my pickle: The build process for my program needs to find libnl's files at compile time not just at run time. What's the right way to get those paths? Right now, I've just hard-coded the relative path in the build_$(ARCH) directory, like so
CFLAGS += -I../../libnl-1.1/ipkg-install/usr/include
but that seems rather fragile. Is there a proper way to go about this?