In my c/c++ files, there are multiple #define. As an example:
#ifdef LIBVNCSERVER_HAVE_LIBZ
/* some code */
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
/* some more code */
Can you please tell me how can I modify my Makefile.in so that I have those #define in ALL files during compilation?
Thank you.
You could pass those in
CPPFLAGS,or make new variable
and pass it to
CPPFLAGS = -DEXISTINGFLAGS $(CUSTOMDEFINES)Those are finally will pass to
gcc/g++ -D...