Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / ACE / include / makeinclude / all_in_one.GNU
blob09edbc98fb245d0b091a136efe1d7ac7f1bbdfd1
1 # -*- Makefile -*-
3 #----------------------------------------------------------------------------
4 #  
5 #----------------------------------------------------------------------------
7 # Only include once.
8 ifndef ALL_IN_ONE_GNU
9 ALL_IN_ONE_GNU = 1
11 # Include wrapper macros to all user defines, etc.
12 include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
14 TAO_ROOT ?= $(ACE_ROOT)/TAO
16 ifneq ($(ADDITIONAL_INCLUDE),)
17   include $(ADDITIONAL_INCLUDE)
18 endif
20 # Now test for installed components, and set the BIN. LIB, and SHLIB
21 # targets from the *_UNCHECKED ones if the component checks 
22 # succeed.  Client Makefile must set the variable REQUIRED_COMPONENTS
23 # with a list of required components.  If no additional components
24 # are required, REQUIRED_COMPONENTS need not be set.
25 include $(ACE_ROOT)/include/makeinclude/component_check.GNU
27 # If no required components are missing, set the real targets
28 ifeq ($(MISSING_COMPONENTS),)
29   ifdef BIN_UNCHECKED
30     BIN += $(BIN_UNCHECKED)
31   endif # !BIN_UNCHECKED
32   ifdef static_libs
33     ifdef LIB_UNCHECKED
34       LIB += $(LIB_UNCHECKED)
35     endif # !LIB_UNCHECKED
36   endif # static_libs
37   ifdef shared_libs
38     ifdef SHLIB_UNCHECKED
39       SHLIB += $(SHLIB_UNCHECKED)
40     endif # !SHLIB_UNCHECKED
41   endif # !shared_libs
42 endif # COMPILE_COMPONENT
44 include $(ACE_ROOT)/include/makeinclude/macros.GNU
45 include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
47 ifdef DIRS
48   include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU
49 else # !DIRS
50   include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
51 endif # DIRS
52 ifdef CLEANUP_LIB
53   include_lib = 1
54 endif # LIB
56 ifdef CLEANUP_SHLIB
57   include_lib = 1
58 endif # SHLIB
60 ifeq ($(include_lib),1)
61   include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
62 endif
64 include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
66 # Remove the -g option if requested.
67 SUPPRESS_DASH_G ?=
68 ifeq ($(SUPPRESS_DASH_G),1)
69   DCFLAGS := $(filter-out -g, $DCFLAGS)
70 endif
72 endif # ALL_IN_ONE_GNU