Support wide Curses on MS-DOS
Also, fix IBMGraphics on Curses
This commit is contained in:
@@ -74,9 +74,18 @@ ifdef BUILD_PDCURSES
|
||||
# PD Curses library
|
||||
#===============-=================================================
|
||||
ifdef WANT_WIN_CURSES
|
||||
ifdef WANT_DOSVGA
|
||||
PDCTOP = ../lib/pdcursesmod
|
||||
PDCPORT = $(PDCTOP)/dosvga
|
||||
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
|
||||
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \
|
||||
-D"PDC_WIDE" -D"CURSES_UNICODE"
|
||||
else
|
||||
PDCTOP = ../lib/pdcurses
|
||||
PDCURSESDEF= -I../lib/pdcurses -I../lib/pdcurses/dos \
|
||||
PDCPORT = $(PDCTOP)/dos
|
||||
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
|
||||
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE"
|
||||
endif # WANT_DOSVGA
|
||||
PDCLIBOBJ1= $(TARGETPFX)addch.o $(TARGETPFX)addchstr.o \
|
||||
$(TARGETPFX)addstr.o $(TARGETPFX)attr.o \
|
||||
$(TARGETPFX)beep.o $(TARGETPFX)bkgd.o \
|
||||
@@ -152,7 +161,7 @@ MSDOS_TARGET_CFLAGS = -c -O -I../include -I../sys/msdos -I../win/share \
|
||||
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int \
|
||||
-Wmissing-parameter-type -Wold-style-definition -Wstrict-prototypes \
|
||||
-DGCC_WARN
|
||||
PDCINCL += -I$(PDCTOP)/dos
|
||||
PDCINCL += -I$(PDCPORT)
|
||||
PDC_TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS) -Wno-unused-parameter \
|
||||
-Wno-missing-prototypes
|
||||
LUA_TARGET_CFLAGS = $(MSDOS_TARGET_CFLAGS)
|
||||
@@ -189,7 +198,7 @@ VARDATND += nhtiles.bmp
|
||||
#
|
||||
ifdef WANT_WIN_CURSES
|
||||
# rules for pdcurses dos-specific files
|
||||
$(TARGETPFX)%.o : $(PDCTOP)/dos/%.c
|
||||
$(TARGETPFX)%.o : $(PDCPORT)/%.c
|
||||
$(TARGET_CC) $(PDCINCL) $(PDC_TARGET_CFLAGS) -o$@ $<
|
||||
endif # WANT_WIN_CURSES
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user