3b77b723ca
PDCurses provides an alternative implementation of the curses library standard in addition to tinycurses. Where tinycurses is really tiny, PDCurses is more complete and provides virtually unlimited windows and the full API. The PDCurses code is brought in "vanilla", with all local changes residing in curses/pdcurses-backend/ In addition to a curses library, this change also provides libpanel (as part of the PDCurses code), and libform and libmenu which were derived from ncurses-5.9. As they rely on ncurses internals (and PDCurses is not ncurses), more changes were required for these libraries to work. The build system is extended to install the right set of header files depending on the selected curses implementation. Change-Id: I9e5b920f94b6510da01da2f656196a993170d1c5 Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/106 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
# Common elements for the Watcom makefiles
|
|
|
|
srcdir = $(PDCURSES_SRCDIR)\pdcurses
|
|
demodir = $(PDCURSES_SRCDIR)\demos
|
|
|
|
LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj &
|
|
border.obj clear.obj color.obj delch.obj deleteln.obj deprec.obj &
|
|
getch.obj getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj &
|
|
insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj &
|
|
outopts.obj overlay.obj pad.obj panel.obj printw.obj refresh.obj &
|
|
scanw.obj scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj &
|
|
touch.obj util.obj window.obj debug.obj
|
|
|
|
PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj &
|
|
pdcsetsc.obj pdcutil.obj
|
|
|
|
DEMOS = testcurs.exe newdemo.exe xmas.exe tuidemo.exe firework.exe &
|
|
ptest.exe rain.exe worm.exe
|
|
|
|
LIBCURSES = pdcurses.lib
|
|
|
|
LINK = wlink
|
|
|
|
!ifdef __LOADDLL__
|
|
! loaddll wcc wccd
|
|
! loaddll wcc386 wccd386
|
|
! loaddll wlink wlink
|
|
! loaddll wlib wlibd
|
|
!endif
|
|
|
|
all: $(LIBCURSES) $(DEMOS)
|
|
|
|
clean
|
|
-del *.obj
|
|
-del *.lib
|
|
-del *.exe
|
|
-del *.err
|
|
|
|
demos: $(DEMOS)
|
|
|
|
.c: $(srcdir);$(osdir);$(demodir)
|
|
.c.obj: .autodepend
|
|
$(CC) $(CFLAGS) $<
|
|
|
|
.obj.exe:
|
|
$(LINK) $(LDFLAGS) n $@ f $*.obj l $(LIBCURSES)
|
|
|
|
testcurs.exe: testcurs.obj $(LIBCURSES)
|
|
newdemo.exe: newdemo.obj $(LIBCURSES)
|
|
xmas.exe: xmas.obj $(LIBCURSES)
|
|
firework.exe: firework.obj $(LIBCURSES)
|
|
rain.exe: rain.obj $(LIBCURSES)
|
|
worm.exe: worm.obj $(LIBCURSES)
|
|
ptest.exe: ptest.obj $(LIBCURSES)
|
|
|
|
tuidemo.exe: tuidemo.obj tui.obj $(LIBCURSES)
|
|
$(LINK) $(LDFLAGS) n $@ f tuidemo.obj f tui.obj l $(LIBCURSES)
|
|
|
|
dist: .symbolic
|