aboutsummaryrefslogtreecommitdiff
path: root/dist/libxsde/xsde/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-05-11 12:20:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-05-11 12:20:11 +0200
commit2e501c68a8641a2b3c430b55f13491a9c1c5d0f5 (patch)
tree49c2748443fe3c1f01108756b647440e0647a11b /dist/libxsde/xsde/makefile
parent161beba6cdb0d91b15ad19fa8b3e51d986203915 (diff)
Add support for custom allocators
New example: examples/cxx/hybrid/allocator.
Diffstat (limited to 'dist/libxsde/xsde/makefile')
-rw-r--r--dist/libxsde/xsde/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/dist/libxsde/xsde/makefile b/dist/libxsde/xsde/makefile
index 9d3d1a1..34e026b 100644
--- a/dist/libxsde/xsde/makefile
+++ b/dist/libxsde/xsde/makefile
@@ -9,8 +9,20 @@ EXTRA_CPPFLAGS := -I..
src := c/expat/xmlparse.c c/expat/xmlrole.c c/expat/xmltok.c
src += c/genx/genx.c c/genx/char-props.c
+ifeq ($(XSDE_CUSTOM_ALLOCATOR),y)
+ifeq ($(XSDE_DEFAULT_ALLOCATOR),y)
+src += allocator.c
+endif
+endif
+
src += cxx/string.cxx cxx/string-search.cxx cxx/ro-string.cxx cxx/stack.cxx
+ifeq ($(XSDE_CUSTOM_ALLOCATOR),y)
+ifeq ($(XSDE_EXCEPTIONS),y)
+src += cxx/allocator.cxx
+endif
+endif
+
ifeq ($(XSDE_ENCODING),iso8859-1)
src += cxx/iso8859-1.cxx
endif
@@ -565,6 +577,12 @@ ifeq ($(XSDE_REUSE_STYLE),none)
else
@echo $(h)undef XSDE_REUSE_STYLE_NONE >>$@
endif
+ifeq ($(XSDE_CUSTOM_ALLOCATOR),y)
+ @echo $(h)define XSDE_CUSTOM_ALLOCATOR >>$@
+endif
+ifeq ($(XSDE_DEFAULT_ALLOCATOR),y)
+ @echo $(h)define XSDE_DEFAULT_ALLOCATOR >>$@
+endif
ifeq ($(XSDE_POLYMORPHIC),y)
@echo $(h)define XSDE_POLYMORPHIC >>$@
@echo $(h)define XSDE_PARSER_SMAP_BUCKETS $(XSDE_PARSER_SMAP_BUCKETS)UL >>$@