diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 8008dd09ccf88d4edef237a184a698cac42f2952 (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /CIAO/rules.ciao.GNU | |
parent | 13d6e89af439164c0ade48e6f5c3e9b3f971e8c9 (diff) | |
download | ATCD-8008dd09ccf88d4edef237a184a698cac42f2952.tar.gz |
Repo restructuring
Diffstat (limited to 'CIAO/rules.ciao.GNU')
-rw-r--r-- | CIAO/rules.ciao.GNU | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/CIAO/rules.ciao.GNU b/CIAO/rules.ciao.GNU new file mode 100644 index 00000000000..a3c76dc47a7 --- /dev/null +++ b/CIAO/rules.ciao.GNU @@ -0,0 +1,64 @@ +# -*- Makefile -*- + +#---------------------------------------------------------------------------- +# +# $Id$ +# +# Common Makefile rules for all of CIAO +# +#---------------------------------------------------------------------------- + +ifndef TAO_ROOT + TAO_ROOT = $(ACE_ROOT)/TAO +endif + +ifndef CIAO_ROOT + CIAO_ROOT = $(TAO_ROOT)/CIAO +endif + +ifndef TAO_IDL3_TO_IDL2 + TAO_IDL3_TO_IDL2 = $(CIAO_ROOT)/tools/IDL3_TO_IDL2/tao_idl3_to_idl2 + TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2)$(EXEEXT) +else +ifndef TAO_IDL3_TO_IDL2_DEP + TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2) +endif +endif + +ifeq (,$(findstring -L$(CIAO_ROOT)/ciao,$(LDFLAGS))) + LDFLAGS += -L$(CIAO_ROOT)/ciao +endif +ifeq (,$(findstring -I$(CIAO_ROOT),$(INCLDIRS))) + INCLDIRS += -I$(CIAO_ROOT) +endif + +# Turn on symbol versioning. The scheme that we follow is to allow +# applications dependent on libraries, with same version numbers (major, +# minor and beta) to run, but applications with dependencies on libraries +# with different minor or major or beta versions to fail. +# +ifeq (cmd,$(findstring cmd,$(SHELL))) +CIAO_MAJOR_VERSION := $(shell awk "/CIAO_MAJOR_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h) +CIAO_MINOR_VERSION := $(shell awk "/CIAO_MINOR_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h) +CIAO_BETA_VERSION := $(shell awk "/CIAO_BETA_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h) +else +CIAO_MAJOR_VERSION := $(shell awk '/CIAO_MAJOR_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h) +CIAO_MINOR_VERSION := $(shell awk '/CIAO_MINOR_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h) +CIAO_BETA_VERSION := $(shell awk '/CIAO_BETA_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h) +endif + +# Version number of the libraries +# +ifeq ($(versioned_so),1) + # Only set SOVERSION for CIAO if versioning is turned on and SOVERION is + # blank, which gives users to ability to override it. + ifeq ($(SOVERSION),) + SOVERSION = .$(CIAO_MAJOR_VERSION).$(CIAO_MINOR_VERSION).$(CIAO_BETA_VERSION) + endif # SOVERSION + + # Name that will be written into the dynamic library + # + ifneq ($(SONAME),) + SONAME = $(SHLIB).$(CIAO_MAJOR_VERSION).$(CIAO_MINOR_VERSION).$(CIAO_BETA_VERSION) + endif # SONAME +endif # versioned_so |