Allow building with the "WIDE=Y" parameter for all Win32 compilers,

except LCC.
This commit is contained in:
William McBrine
2007-01-12 00:53:28 +00:00
parent 6ef1b42462
commit 7ce6cbb57f
4 changed files with 26 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
#
# Borland MAKE Makefile for PDCurses library - Win32 BC++ 4.0+
#
# Usage: make -f [path\]bccwin32.mak [-DDEBUG] [target]
# Usage: make -f [path\]bccwin32.mak [DEBUG=] [WIDE=] [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|panel.lib|testcurs.exe...]
@@ -28,12 +28,16 @@ osdir = $(PDCURSES_HOME)\win32
CC = bcc32 -q
!if $d(DEBUG)
CFLAGS = -N -v -y -DPDCDEBUG
CFLAGS = -N -v -y -DPDCDEBUG -w-par
!else
CFLAGS = -O -w-par
!endif
CPPFLAGS = -I$(PDCURSES_HOME) #-DPDC_WIDE
!if $d(WIDE)
CPPFLAGS = -I$(PDCURSES_HOME) -DPDC_WIDE
!else
CPPFLAGS = -I$(PDCURSES_HOME)
!endif
BUILD = $(CC) -c -Tpe -w32 $(CFLAGS) $(CPPFLAGS)

View File

@@ -2,7 +2,7 @@
#
# GNU MAKE Makefile for PDCurses library - WIN32 Cygnus GCC
#
# Usage: make -f [path\]gccwin32.mak [-DDEBUG] [target]
# Usage: make -f [path\]gccwin32.mak [DEBUG=Y] [WIDE=Y] [target]
#
# where target can be any of:
# [all|demos|pdcurses.a|panel.a|testcurs.exe...]
@@ -37,7 +37,11 @@ else
LDFLAGS =
endif
CPPFLAGS = -I$(PDCURSES_HOME) #-DPDC_WIDE
ifeq ($(WIDE),Y)
CPPFLAGS = -I$(PDCURSES_HOME) -DPDC_WIDE
else
CPPFLAGS = -I$(PDCURSES_HOME)
endif
CCFLAGS = $(CFLAGS) $(CPPFLAGS)

View File

@@ -2,7 +2,7 @@
#
# GNU MAKE Makefile for PDCurses library - WIN32 MinGW GCC
#
# Usage: make -f [path\]gccwin32.mak [-DDEBUG] [target]
# Usage: make -f [path\]gccwin32.mak [DEBUG=Y] [WIDE=Y] [target]
#
# where target can be any of:
# [all|demos|pdcurses.a|panel.a|testcurs.exe...]
@@ -37,7 +37,11 @@ else
LDFLAGS =
endif
CPPFLAGS = -I$(PDCURSES_HOME) -DPDC_WIDE
ifeq ($(WIDE),Y)
CPPFLAGS = -I$(PDCURSES_HOME) -DPDC_WIDE
else
CPPFLAGS = -I$(PDCURSES_HOME)
endif
CCFLAGS = $(CFLAGS) $(CPPFLAGS)

View File

@@ -2,7 +2,7 @@
#
# Watcom WMAKE Makefile for PDCurses library - Win32 Watcom C/C++ 10.6+
#
# Usage: wmake -f [win32\]wccwin32.mak [DEBUG=Y] [target]
# Usage: wmake -f [win32\]wccwin32.mak [DEBUG=Y] [WIDE=Y] [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|panel.lib|testcurs.exe...]
@@ -33,7 +33,12 @@ CFLAGS = /oneatx
LDFLAGS = op q sys $(TARGET)
!endif
CPPFLAGS = /i=$(PDCURSES_HOME) #/DPDC_WIDE
!ifeq WIDE Y
CPPFLAGS = /i=$(PDCURSES_HOME) /DPDC_WIDE
!else
CPPFLAGS = /i=$(PDCURSES_HOME)
!endif
CCFLAGS = /ei /zq /wx $(CFLAGS) $(CPPFLAGS)
LIBEXE = wlib /q /n /t