Advertisement
Guest User

Untitled

a guest
Nov 28th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.73 KB | None | 0 0
  1. # -*- Makefile -*-
  2.  
  3. #----------------------------------------------------------------------------
  4. #
  5. #
  6. #       Common Makefile rules for all of DDS
  7. #
  8. #----------------------------------------------------------------------------
  9.  
  10. # This is a multiple-include guard for this file because older versions of
  11. # ACE's gnuace template will do an automatic include of this file as well
  12. # as the one that will be generated by the verbatim in dcps.mpb.
  13. ifndef rules_dds_gnu_included
  14. rules_dds_gnu_included=1
  15.  
  16.  
  17. ifndef TAO_ROOT
  18.   TAO_ROOT = $(ACE_ROOT)/TAO
  19. endif
  20.  
  21. ifndef DDS_ROOT
  22.   DDS_ROOT = $(TAO_ROOT)/DDS
  23. endif
  24. DDS_ROOT := $(subst \,/,$(DDS_ROOT))
  25.  
  26. ifeq (,$(findstring -L$(DDS_ROOT)/lib,$(LDFLAGS)))
  27.   LDFLAGS += -L$(DDS_ROOT)/lib
  28. endif
  29. ifeq (,$(findstring -I$(DDS_ROOT),$(INCLDIRS)))
  30.   INCLDIRS += -I$(DDS_ROOT)
  31. endif
  32.  
  33. # Set defaults for gnumake macros corresponding to MPC features used by DDS
  34. # This is needed for features used in requires/avoids statements in .mpc files
  35. built_in_topics ?= 1
  36. tao_orbsvcs ?= 1
  37. query_condition ?= 1
  38. content_filtered_topic ?= 1
  39. multi_topic ?= 1
  40. ownership_profile ?= 1
  41. ownership_kind_exclusive ?= 1
  42. object_model_profile ?= 1
  43. persistence_profile ?= 1
  44. exceptions ?= 1
  45. no_opendds_safety_profile ?= 1
  46. no_opendds_security ?= 1
  47.  
  48. OPENDDS_IDL = $(DDS_ROOT)/bin/opendds_idl
  49. OPENDDS_IDL_DEP = $(OPENDDS_IDL)
  50. IDL2JNI = $(DDS_ROOT)/bin/idl2jni
  51. IDL2JNI_DEP = $(IDL2JNI)
  52.  
  53. # Turn on symbol versioning. The scheme that we follow is to allow
  54. # applications dependent on libraries, with same version numbers (major,
  55. # minor and beta) to run, but applications with dependencies on libraries
  56. # with different minor or major or beta versions to fail.
  57. #
  58. ifeq (cmd,$(findstring cmd,$(SHELL)))
  59. DDS_MAJOR_VERSION := $(shell awk "/DDS_MAJOR_VERSION/ { print $$3}" ${DDS_ROOT}/dds/Version.h)
  60. DDS_MINOR_VERSION := $(shell awk "/DDS_MINOR_VERSION/ { print $$3}" ${DDS_ROOT}/dds/Version.h)
  61. DDS_MICRO_VERSION := $(shell awk "/DDS_MICRO_VERSION/ { print $$3}" ${DDS_ROOT}/dds/Version.h)
  62. else
  63. DDS_MAJOR_VERSION := $(shell awk '/DDS_MAJOR_VERSION/ { print $$3}' ${DDS_ROOT}/dds/Version.h)
  64. DDS_MINOR_VERSION := $(shell awk '/DDS_MINOR_VERSION/ { print $$3}' ${DDS_ROOT}/dds/Version.h)
  65. DDS_MICRO_VERSION := $(shell awk '/DDS_MICRO_VERSION/ { print $$3}' ${DDS_ROOT}/dds/Version.h)
  66. endif
  67.  
  68. GNUACE_PROJECT_VERSION ?= $(DDS_MAJOR_VERSION).$(DDS_MINOR_VERSION).$(DDS_MICRO_VERSION)
  69.  
  70. -include $(DDS_ROOT)/user_macros.GNU
  71.  
  72. # user_macros.GNU may not exist, but GNU make will try to "make" it using the
  73. # overly general rule for creating symlinks in rules.local.GNU.  To prevent
  74. # this, create a more specific rule for user_macros.GNU that does nothing.
  75. .DEFAULT_GOAL := all
  76. $(DDS_ROOT)/user_macros.GNU: ;
  77.  
  78. endif # rules_dds_gnu_included
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement