Closed krunalchauhan637 closed 1 year ago
Hi there, if I understand correctly, you want a linkable library such that it wouldn't need to reference the header files during compilation? That is AFAIK impossible, see e.g. https://stackoverflow.com/a/27660748
I have clone cbor library. I have cross compile for Imx6ul board. Generated static library from source code. I have successfully compiled using below variable added in project makefile.
LDFLAGS = -L./app/lib LIBS = -lcbor
CBORLIB_INC := app/include/libcbor/inc INCLUDES += -I$(CBORLIB_INC) -I$(CBORLIB_INC)/cbor -I$(CBORLIB_INC)/cbor/internal
Question: How can I achive this without including all header file ? How can I make all header file is part of static library ?