2 #----------------------------------------------------------------------------
5 # @file GNUmakefile.ACE_FlReactor
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_FlReactor
14 DEPENDENCY_FILE = .depend.ACE_FlReactor
16 ## LIB may be set to empty later on in this file
17 LIB_UNCHECKED = libACE_FlReactor.a
18 LIB = $(LIB_UNCHECKED)
19 LIB_NAME = libACE_FlReactor
21 ## SHLIB may be set to empty later on in this file
22 SHLIB_UNCHECKED = libACE_FlReactor.$(SOEXT)
23 SHLIB = $(SHLIB_UNCHECKED)
26 FlReactor/FlReactor.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_FlReactor
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)
79 ifneq ($(LIBCHECK), 1)
120 include $(ACE_ROOT)/include/makeinclude/macros.GNU
121 include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
122 include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
123 include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
124 include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
125 ifeq ($(VXWORKSLINK),1)
126 include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE)
129 ifeq ($(VXWORKSLINK),1)
130 LDLIBPATH = -L. -L../lib
132 LDFLAGS += -L. -L../lib
135 ifeq ($(shared_libs),1)
137 CPPFLAGS += -DACE_FLREACTOR_BUILD_DLL
140 ifeq ($(static_libs),1)
141 CPPFLAGS += -DACE_AS_STATIC_LIBS
144 #----------------------------------------------------------------------------
146 #----------------------------------------------------------------------------
147 CPPFLAGS += $(PLATFORM_FL_CPPFLAGS)
148 CPPFLAGS += $(PLATFORM_GL_CPPFLAGS) $(PLATFORM_X11_CPPFLAGS)
149 LIBS += $(PLATFORM_FL_LIBS) $(PLATFORM_GL_LIBS) $(PLATFORM_X11_LIBS)
150 LDFLAGS += $(PLATFORM_FL_LDFLAGS) $(PLATFORM_GL_LDFLAGS)
151 LDFLAGS += $(PLATFORM_GL_LDFLAGS)
154 @echo ACE_FlReactor will not be built due to the following missing library:
158 @echo ACE_FlReactor will not be built due to one of the following disabled make macros:
161 ## Some OS's have /bin/test others only have /usr/bin/test
162 ifeq ($(wildcard /bin/test), /bin/test)
165 ifeq ($(wildcard /usr/bin/test), /usr/bin/test)
166 TEST_EXE = /usr/bin/test
170 ifneq ($(GENERATED_DIRTY),)
171 .PRECIOUS: $(GENERATED_DIRTY)
172 ## If the generated files are anything but source files, we need to
173 ## ensure that those files are generated before we attempt to build anything
175 ifeq ($(OBJS_DEPEND_ON_GENERATED),1)
176 $(VDIR)$(ACE_PCH_FILE) $(addprefix $(VDIR), $(OBJS)): $(GENERATED_DIRTY)
177 $(VSHDIR)$(ACE_PCH_FILE) $(VSHOBJS): $(GENERATED_DIRTY)
183 ifneq ($(GENERATED_DIRTY),)
184 -$(RM) -r $(GENERATED_DIRTY)