Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / GNUmakefile.ACE_XtReactor
blob823e7f439d2a2a7f6e251c80fcc061318235e657
1 # -*- Makefile -*-
2 #----------------------------------------------------------------------------
3 #       GNU Makefile
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)
25 FILES = \
26   XtReactor/XtReactor.cpp
28 VPATH = .:XtReactor
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_XtReactor
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 ($(xt),1)
78 ifneq ($(LIBCHECK), 1)
79   LIB   =
80   SHLIB =
81   all: lib_warning
82 endif
83 else
84   LIB   =
85   SHLIB =
86   all: require_warning
87 endif
88 else
89   LIB   =
90   SHLIB =
91   all: require_warning
92 endif
94 ifeq ($(x11),1)
95 ifeq ($(xt),1)
96 else
97   LIB   =
98   SHLIB =
99   all: require_warning
100 endif
101 else
102   LIB   =
103   SHLIB =
104   all: require_warning
105 endif
106 LSRC   = $(FILES)
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)
115 endif
117 ifeq ($(VXWORKSLINK),1)
118 LDLIBPATH     = -L. -L../lib
119 else
120 LDFLAGS      += -L. -L../lib
121 endif
122 CPPFLAGS     += -I..
123 ifeq ($(shared_libs),1)
124   ifneq ($(SHLIB),)
125     CPPFLAGS += -DACE_XTREACTOR_BUILD_DLL
126   endif
127 endif
128 ifeq ($(static_libs),1)
129   CPPFLAGS += -DACE_AS_STATIC_LIBS
130 endif
132 #----------------------------------------------------------------------------
133 #       Local targets
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)
139 lib_warning:
140         @echo ACE_XtReactor will not be built due to the following missing library:
141         @echo $(LIBCHECK)
143 require_warning:
144         @echo ACE_XtReactor will not be built due to one of the following disabled make macros:
145         @echo x11 xt
147 ## Some OS's have /bin/test others only have /usr/bin/test
148 ifeq ($(wildcard /bin/test), /bin/test)
149   TEST_EXE = /bin/test
150 else
151 ifeq ($(wildcard /usr/bin/test), /usr/bin/test)
152   TEST_EXE = /usr/bin/test
153 endif
154 endif
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
160 ## else.
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)
164 endif
165 endif
168 realclean: clean
169 ifneq ($(GENERATED_DIRTY),)
170         -$(RM) -r $(GENERATED_DIRTY)
171 endif
173 __prebuild__:
174         @-: