aboutsummaryrefslogtreecommitdiff
path: root/dist/libxsde/xsde/nmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'dist/libxsde/xsde/nmakefile')
-rw-r--r--dist/libxsde/xsde/nmakefile18
1 files changed, 18 insertions, 0 deletions
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 >>$@