diff options
Diffstat (limited to 'dist/libxsde/xsde')
-rw-r--r-- | dist/libxsde/xsde/makefile | 18 | ||||
-rw-r--r-- | dist/libxsde/xsde/nmakefile | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dist/libxsde/xsde/makefile b/dist/libxsde/xsde/makefile index 9abff7a..60c5ba3 100644 --- a/dist/libxsde/xsde/makefile +++ b/dist/libxsde/xsde/makefile @@ -11,6 +11,10 @@ src += c/genx/genx.c c/genx/char-props.c src += cxx/string.cxx cxx/ro-string.cxx cxx/stack.cxx +ifeq ($(XSDE_ENCODING),iso8859-1) +src += cxx/iso8859-1.cxx +endif + ifeq ($(XSDE_STL),n) src += cxx/strdupx.cxx endif @@ -506,6 +510,20 @@ endif ifeq ($(XSDE_BYTEORDER),b) @echo $(h)define XSDE_BYTEORDER 4321 >>$@ endif +ifeq ($(XSDE_ENCODING),utf8) + @echo $(h)define XSDE_ENCODING_UTF8 >>$@ +else +ifeq ($(XSDE_ENCODING),) + @echo $(h)define XSDE_ENCODING_UTF8 >>$@ +else + @echo $(h)undef XSDE_ENCODING_UTF8 >>$@ +endif +endif +ifeq ($(XSDE_ENCODING),iso8859-1) + @echo $(h)define XSDE_ENCODING_ISO8859_1 >>$@ +else + @echo $(h)undef XSDE_ENCODING_ISO8859_1 >>$@ +endif ifeq ($(XSDE_STL),y) @echo $(h)define XSDE_STL >>$@ endif diff --git a/dist/libxsde/xsde/nmakefile b/dist/libxsde/xsde/nmakefile index dd806f7..90fc489 100644 --- a/dist/libxsde/xsde/nmakefile +++ b/dist/libxsde/xsde/nmakefile @@ -13,6 +13,10 @@ src = $(src) c\genx\genx.c c\genx\char-props.c src = $(src) cxx\string.cxx cxx\ro-string.cxx cxx\stack.cxx +!if "$(XSDE_ENCODING)" == "iso8859-1" +src = $(src) cxx\iso8859-1.cxx +!endif + !if "$(XSDE_STL)" == "n" src = $(src) cxx\strdupx.cxx !endif @@ -501,6 +505,20 @@ config.h: !if "$(XSDE_BYTEORDER)" == "b" @echo #define XSDE_BYTEORDER 4321 >>$@ !endif +!if "$(XSDE_ENCODING)" == "utf8" + @echo #define XSDE_ENCODING_UTF8 >>$@ +!else +!if "$(XSDE_ENCODING)" == "" + @echo #define XSDE_ENCODING_UTF8 >>$@ +!else + @echo #undef XSDE_ENCODING_UTF8 >>$@ +!endif +!endif +!if "$(XSDE_ENCODING)" == "iso8859-1" + @echo #define XSDE_ENCODING_ISO8859_1 >>$@ +!else + @echo #undef XSDE_ENCODING_ISO8859_1 >>$@ +!endif !if "$(XSDE_STL)" == "y" @echo #define XSDE_STL >>$@ !endif |