aboutsummaryrefslogtreecommitdiff
path: root/dist/libxsde/xsde
diff options
context:
space:
mode:
Diffstat (limited to 'dist/libxsde/xsde')
-rw-r--r--dist/libxsde/xsde/makefile18
-rw-r--r--dist/libxsde/xsde/nmakefile18
2 files changed, 36 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 >>$@
diff --git a/dist/libxsde/xsde/nmakefile b/dist/libxsde/xsde/nmakefile
index b1fd08b..25625a3 100644
--- a/dist/libxsde/xsde/nmakefile
+++ b/dist/libxsde/xsde/nmakefile
@@ -11,12 +11,24 @@ EXTRA_CPPFLAGS = /I..
src = c\expat\xmlparse.c c\expat\xmlrole.c c\expat\xmltok.c
src = $(src) c\genx\genx.c c\genx\char-props.c
+!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y"
+!if "$(XSDE_DEFAULT_ALLOCATOR)" == "y"
+src = $(src) allocator.c
+!endif
+!endif
+
src = $(src) \
cxx\string.cxx \
cxx\string-search.cxx \
cxx\ro-string.cxx \
cxx\stack.cxx
+!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y"
+!if "$(XSDE_EXCEPTIONS)" == "y"
+src = $(src) cxx/allocator.cxx
+!endif
+!endif
+
!if "$(XSDE_ENCODING)" == "iso8859-1"
src = $(src) cxx\iso8859-1.cxx
!endif
@@ -565,6 +577,12 @@ config.h:
!else
@echo #undef XSDE_REUSE_STYLE_NONE >>$@
!endif
+!if "$(XSDE_CUSTOM_ALLOCATOR)" == "y"
+ @echo #define XSDE_CUSTOM_ALLOCATOR >>$@
+!endif
+!if "$(XSDE_DEFAULT_ALLOCATOR)" == "y"
+ @echo #define XSDE_DEFAULT_ALLOCATOR >>$@
+!endif
!if "$(XSDE_POLYMORPHIC)" == "y"
@echo #define XSDE_POLYMORPHIC >>$@
@echo #define XSDE_PARSER_SMAP_BUCKETS $(XSDE_PARSER_SMAP_BUCKETS)UL >>$@