2 #----------------------------------------------------------------------------
5 # @file GNUmakefile.ACE_XtReactor
7 # $Id: gnu.mpd 82648 2008-08-21 06:55:54Z johnnyw $
9 # This file was automatically generated by MPC. Any changes made directly to
10 # this file will be lost the next time it is generated.
12 #----------------------------------------------------------------------------
13 MAKEFILE = GNUmakefile.ACE_XtReactor
14 DEPENDENCY_FILE = .depend.ACE_XtReactor
16 ## LIB may be set to empty later on in this file
17 LIB_UNCHECKED = libACE_XtReactor.a
18 LIB = $(LIB_UNCHECKED)
19 LIB_NAME = libACE_XtReactor
21 ## SHLIB may be set to empty later on in this file
22 SHLIB_UNCHECKED = libACE_XtReactor.$(SOEXT)
23 SHLIB = $(SHLIB_UNCHECKED)
26 XtReactor/XtReactor.cpp
30 #----------------------------------------------------------------------------
31 # Include macros and targets
32 #----------------------------------------------------------------------------
44 OUTPUT_DIRECTORY = $(INSLIB)
46 include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
48 # To build multiple targets in the same directory on AIX, it works
49 # best to have a template directory per project.
50 # The compiler/linker isn't too smart about instantiating templates...
52 TEMPINCDIR := $(TEMPINCDIR)/ACE_XtReactor
56 ifneq ($(OUTPUT_DIRECTORY),)
57 all: $(OUTPUT_DIRECTORY)
59 -@$(MKDIR) "$(OUTPUT_DIRECTORY)"
62 # turn off libcheck if doing a dry run
63 ifeq ($(findstring n, $(MAKEFLAGS)),n)
66 # turn off libcheck if keep going was passed too
67 ifeq ($(findstring k, $(MAKEFLAGS)),k)
70 LIBCHECK ?= $(filter-out $(foreach lib,ACE,$(findstring $(lib),$(foreach libpath,. ../lib /usr/lib /usr/lib64 $(INSLIB),$(wildcard $(libpath)/lib$(lib).* $(libpath)/$(lib).lib)))),ACE)
78 ifneq ($(LIBCHECK), 1)
108 include $(ACE_ROOT)/include/makeinclude/macros.GNU
109 include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
110 include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
111 include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
112 include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
113 ifeq ($(VXWORKSLINK),1)
114 include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE)
117 ifeq ($(VXWORKSLINK),1)
118 LDLIBPATH = -L. -L../lib
120 LDFLAGS += -L. -L../lib
123 ifeq ($(shared_libs),1)
125 CPPFLAGS += -DACE_XTREACTOR_BUILD_DLL
128 ifeq ($(static_libs),1)
129 CPPFLAGS += -DACE_AS_STATIC_LIBS
132 #----------------------------------------------------------------------------
134 #----------------------------------------------------------------------------
135 CPPFLAGS += $(PLATFORM_XT_CPPFLAGS) $(PLATFORM_X11_CPPFLAGS)
136 LIBS += $(PLATFORM_XT_LIBS) $(PLATFORM_X11_LIBS)
137 LDFLAGS += $(PLATFORM_XT_LDFLAGS) $(PLATFORM_X11_LDFLAGS)
140 @echo ACE_XtReactor will not be built due to the following missing library:
144 @echo ACE_XtReactor will not be built due to one of the following disabled make macros:
147 ## Some OS's have /bin/test others only have /usr/bin/test
148 ifeq ($(wildcard /bin/test), /bin/test)
151 ifeq ($(wildcard /usr/bin/test), /usr/bin/test)
152 TEST_EXE = /usr/bin/test
156 ifneq ($(GENERATED_DIRTY),)
157 .PRECIOUS: $(GENERATED_DIRTY)
158 ## If the generated files are anything but source files, we need to
159 ## ensure that those files are generated before we attempt to build anything
161 ifeq ($(OBJS_DEPEND_ON_GENERATED),1)
162 $(VDIR)$(ACE_PCH_FILE) $(addprefix $(VDIR), $(OBJS)): $(GENERATED_DIRTY)
163 $(VSHDIR)$(ACE_PCH_FILE) $(VSHOBJS): $(GENERATED_DIRTY)
169 ifneq ($(GENERATED_DIRTY),)
170 -$(RM) -r $(GENERATED_DIRTY)