diff options
Diffstat (limited to 'dist/libxsde/xsde/makefile')
-rw-r--r-- | dist/libxsde/xsde/makefile | 18 |
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 >>$@ |