summaryrefslogtreecommitdiff
path: root/include/makeinclude/compiler.bor
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2002-03-11 11:32:28 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2002-03-11 11:32:28 +0000
commit5f3ef9775ff03d988b8209504e114f3463fec150 (patch)
treedb1153db76c68638ed547dfa213b4e561e8dc631 /include/makeinclude/compiler.bor
parent8538ee61b5174a44d4b453e6d3fa078d38fa10a1 (diff)
downloadATCD-5f3ef9775ff03d988b8209504e114f3463fec150.tar.gz
ChangeLogTag: Mon Mar 11 12:28:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'include/makeinclude/compiler.bor')
-rw-r--r--include/makeinclude/compiler.bor23
1 files changed, 22 insertions, 1 deletions
diff --git a/include/makeinclude/compiler.bor b/include/makeinclude/compiler.bor
index 6e0d1818c76..8b380503165 100644
--- a/include/makeinclude/compiler.bor
+++ b/include/makeinclude/compiler.bor
@@ -6,6 +6,7 @@
# STATIC - if defined means creating a static library or executable
# PASCAL - if defined means link dll against pascal run-time library
# DEBUG - if defined means building with debug information
+# UNICODE - if defined means building unicode
#
# Outputs:
# ~~~~~~~~
@@ -63,6 +64,10 @@ STATIC_LFLAGS =
CODEGUARD_CFLAGS = -vG
!endif
+!ifdef UNICODE
+UNICODE_CFLAGS = -DACE_USES_WCHAR -WU -DUNICODE -D_UNICODE
+!endif
+
THREAD_CFLAGS = -D_MT -tWM
WARNINGS_CFLAGS = -w-rvl -w-rch -w-ccc -w-obs -w-aus -w-pia -w-inl
DEFINES_CFLAGS = -DWIN32;_NO_VCL
@@ -71,7 +76,7 @@ MISC_CFLAGS = -a8 -b
COMMON_CFLAGS = $(QUIET_CFLAGS) $(DEBUG_CFLAGS) $(THREAD_CFLAGS) \
$(STATIC_CFLAGS) $(WARNINGS_CFLAGS) $(DEFINES_CFLAGS) \
- $(MISC_CFLAGS) $(CODEGUARD_CFLAGS)
+ $(MISC_CFLAGS) $(CODEGUARD_CFLAGS) $(UNICODE_CFLAGS)
COMMON_LFLAGS = $(DEBUG_LFLAGS) $(STATIC_LFLAGS) -x -w-dup -Gn
@@ -82,10 +87,18 @@ COMMON_LFLAGS = $(DEBUG_LFLAGS) $(STATIC_LFLAGS) -x -w-dup -Gn
DLL_CFLAGS = -tWD
DLL_LFLAGS = -Tpd -Gi
!ifdef PASCAL
+!ifdef UNICODE
+DLL_STARTUP_OBJ = c0d32w.obj sysinit.obj
+!else
DLL_STARTUP_OBJ = c0d32.obj sysinit.obj
+!endif
+!else
+!ifdef UNICODE
+DLL_STARTUP_OBJ = c0d32w.obj
!else
DLL_STARTUP_OBJ = c0d32.obj
!endif
+!endif
#
# EXE specific flags
@@ -94,10 +107,18 @@ DLL_STARTUP_OBJ = c0d32.obj
EXE_CFLAGS =
EXE_LFLAGS = -Tpe
!ifdef PASCAL
+!ifdef UNICODE
+EXE_STARTUP_OBJ = c0x32w.obj sysinit.obj
+!else
EXE_STARTUP_OBJ = c0x32.obj sysinit.obj
+!endif
+!else
+!ifdef UNICODE
+EXE_STARTUP_OBJ = c0x32w.obj
!else
EXE_STARTUP_OBJ = c0x32.obj
!endif
+!endif
#
# Static lib specific flags