This repository has been archived by the owner on May 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
rules.dance.GNU
44 lines (36 loc) · 1.57 KB
/
rules.dance.GNU
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- Makefile -*-
#----------------------------------------------------------------------------
#
#
#
# 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)/DAnCE,$(LDFLAGS)))
LDFLAGS += -L$(DANCE_ROOT)/DAnCE
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_MICRO_VERSION := $(shell awk "/DAnCE_MICRO_VERSION/ { print $$3}" ${DANCE_ROOT}/dance/Version.h)
else
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_MICRO_VERSION := $(shell awk '/DAnCE_MICRO_VERSION/ { print $$3}' ${DANCE_ROOT}/dance/Version.h)
endif
GNUACE_PROJECT_VERSION ?= $(DANCE_MAJOR_VERSION).$(DANCE_MINOR_VERSION).$(DANCE_MICRO_VERSION)