[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / GNUmakefile.ACE_FlReactor
blob2a9d9908c3494c201fa67d34931c9ded9d625a80
1 # -*- Makefile -*-
2 #----------------------------------------------------------------------------
3 #       GNU Makefile
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)
25 FILES = \
26   FlReactor/FlReactor.cpp
28 VPATH = .:FlReactor
30 #----------------------------------------------------------------------------
31 #       Include macros and targets
32 #----------------------------------------------------------------------------
33 ACE_SHLIBS = -lACE
35 PRJ_TYPE = library
37 INSLIB ?= ../lib
38 ifeq ($(INSLIB),.)
39   ifeq ($(PWD),)
40     PWD=$(shell pwd)
41   endif
42   INSLIB = $(PWD)
43 endif
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...
51 ifdef TEMPINCDIR
52 TEMPINCDIR := $(TEMPINCDIR)/ACE_FlReactor
53 all: $(TEMPINCDIR)
54 endif
56 ifneq ($(OUTPUT_DIRECTORY),)
57 all: $(OUTPUT_DIRECTORY)
58 $(OUTPUT_DIRECTORY):
59         -@$(MKDIR) "$(OUTPUT_DIRECTORY)"
60 endif
62 # turn off libcheck if doing a dry run
63 ifeq ($(findstring n, $(MAKEFLAGS)),n)
64   LIBCHECK = 1
65 else
66   # turn off libcheck if keep going was passed too
67   ifeq ($(findstring k, $(MAKEFLAGS)),k)
68     LIBCHECK = 1
69   else
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)
71     ifeq ($(LIBCHECK),)
72       LIBCHECK = 1
73     endif
74   endif
75 endif
76 ifeq ($(x11),1)
77 ifeq ($(gl),1)
78 ifeq ($(fl),1)
79 ifneq ($(LIBCHECK), 1)
80   LIB   =
81   SHLIB =
82   all: lib_warning
83 endif
84 else
85   LIB   =
86   SHLIB =
87   all: require_warning
88 endif
89 else
90   LIB   =
91   SHLIB =
92   all: require_warning
93 endif
94 else
95   LIB   =
96   SHLIB =
97   all: require_warning
98 endif
100 ifeq ($(x11),1)
101 ifeq ($(gl),1)
102 ifeq ($(fl),1)
103 else
104   LIB   =
105   SHLIB =
106   all: require_warning
107 endif
108 else
109   LIB   =
110   SHLIB =
111   all: require_warning
112 endif
113 else
114   LIB   =
115   SHLIB =
116   all: require_warning
117 endif
118 LSRC   = $(FILES)
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)
127 endif
129 ifeq ($(VXWORKSLINK),1)
130 LDLIBPATH     = -L. -L../lib
131 else
132 LDFLAGS      += -L. -L../lib
133 endif
134 CPPFLAGS     += -I..
135 ifeq ($(shared_libs),1)
136   ifneq ($(SHLIB),)
137     CPPFLAGS += -DACE_FLREACTOR_BUILD_DLL
138   endif
139 endif
140 ifeq ($(static_libs),1)
141   CPPFLAGS += -DACE_AS_STATIC_LIBS
142 endif
144 #----------------------------------------------------------------------------
145 #       Local targets
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)
153 lib_warning:
154         @echo ACE_FlReactor will not be built due to the following missing library:
155         @echo $(LIBCHECK)
157 require_warning:
158         @echo ACE_FlReactor will not be built due to one of the following disabled make macros:
159         @echo x11 gl fl
161 ## Some OS's have /bin/test others only have /usr/bin/test
162 ifeq ($(wildcard /bin/test), /bin/test)
163   TEST_EXE = /bin/test
164 else
165 ifeq ($(wildcard /usr/bin/test), /usr/bin/test)
166   TEST_EXE = /usr/bin/test
167 endif
168 endif
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
174 ## else.
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)
178 endif
179 endif
182 realclean: clean
183 ifneq ($(GENERATED_DIRTY),)
184         -$(RM) -r $(GENERATED_DIRTY)
185 endif
187 __prebuild__:
188         @-: