common.mk

Hi,
I don’t know if it’s normal or not but in a common.mk if we declare a
libray like that:

include $(MKFILES_ROOT)/qmacros.mk
include $(MKFILES_ROOT)/qtargets.mk

LIBS+=tcl8.3

the file libtcl8.3.so will be searched and then libtcl8.3.a (I think).

If we declare a library like that:

LIBS+=tcl8.3

include $(MKFILES_ROOT)/qmacros.mk
include $(MKFILES_ROOT)/qtargets.mk

only a libtcl8.3.a will be searched.

Why not!

I think that as a rule of thumb, except for LIBS (and maybe some others
!?!), all macro’s definitions (especially INSTALLDIR) have to be done
before including qmacros and qtarget.

Right?

Alain.