diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-09-12 18:47:53 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-09-12 18:47:53 +0000 |
commit | 620db150a5c7408c6d563b1f58db27cabc0f969d (patch) | |
tree | c97930df91bcb1d6a95314aba995f181b7570e59 /DAnCE/rules.dance.GNU | |
parent | eb94fbcf19cf9a1f5f432cfd60fe5f375dcc9594 (diff) | |
download | ATCD-620db150a5c7408c6d563b1f58db27cabc0f969d.tar.gz |
Sun Sep 12 18:47:31 UTC 2010 William R. Otte <wotte@dre.vanderbilt.edu>
* rules.dance.GNU:
Adapted from CIAO.
Diffstat (limited to 'DAnCE/rules.dance.GNU')
-rw-r--r-- | DAnCE/rules.dance.GNU | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/DAnCE/rules.dance.GNU b/DAnCE/rules.dance.GNU new file mode 100644 index 00000000000..33586ce4ed8 --- /dev/null +++ b/DAnCE/rules.dance.GNU @@ -0,0 +1,58 @@ +# -*- Makefile -*- + +#---------------------------------------------------------------------------- +# +# $Id$ +# +# Common Makefile rules for all of DAnCE +# +#---------------------------------------------------------------------------- + +ifndef TAO_ROOT + TAO_ROOT = $(ACE_ROOT)/TAO +endif + +ifndef DANCE_ROOT + DANCE_ROOT = $(TAO_ROOT)/DAnCE +endif + +DANCE_ROOT := $(subst \,/,$(DANCE_ROOT)) + + +ifeq (,$(findstring -L$(DANCE_ROOT)/ciao,$(LDFLAGS))) + LDFLAGS += -L$(DANCE_ROOT)/ciao +endif +ifeq (,$(findstring -I$(DANCE_ROOT),$(INCLDIRS))) + INCLDIRS += -I$(DANCE_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))) +DANCE_MAJOR_VERSION := $(shell awk "/DANCE_MAJOR_VERSION/ { print $$3}" ${DANCE_ROOT}/DAnCE/Version.h) +DANCE_MINOR_VERSION := $(shell awk "/DANCE_MINOR_VERSION/ { print $$3}" ${DANCE_ROOT}/DAnCE/Version.h) +DANCE_BETA_VERSION := $(shell awk "/DANCE_BETA_VERSION/ { print $$3}" ${DANCE_ROOT}/DAnCE/Version.h) +else +DANCE_MAJOR_VERSION := $(shell awk '/DANCE_MAJOR_VERSION/ { print $$3}' ${DANCE_ROOT}/ciao/Version.h) +DANCE_MINOR_VERSION := $(shell awk '/DANCE_MINOR_VERSION/ { print $$3}' ${DANCE_ROOT}/ciao/Version.h) +DANCE_BETA_VERSION := $(shell awk '/DANCE_BETA_VERSION/ { print $$3}' ${DANCE_ROOT}/ciao/Version.h) +endif + +# Version number of the libraries +# +ifeq ($(versioned_so),1) + # Only set SOVERSION for DANCE if versioning is turned on and SOVERION is + # blank, which gives users to ability to override it. + ifeq ($(SOVERSION),) + SOVERSION = .$(DANCE_MAJOR_VERSION).$(DANCE_MINOR_VERSION).$(DANCE_BETA_VERSION) + endif # SOVERSION + + # Name that will be written into the dynamic library + # + ifneq ($(SONAME),) + SONAME = $(SHLIB).$(DANCE_MAJOR_VERSION).$(DANCE_MINOR_VERSION).$(DANCE_BETA_VERSION) + endif # SONAME +endif # versioned_so |