diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-07-07 15:41:53 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-08-04 08:10:41 +0200 |
commit | 3b77b723ca209199c8a224702812441e2196d452 (patch) | |
tree | cbf3be2c724139ec80a33dbf8e002b7871ef9307 /payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak | |
parent | 1ac19e28eed4f6c53a4f295eb55500c65fc80f8d (diff) | |
download | coreboot-3b77b723ca209199c8a224702812441e2196d452.tar.xz |
libpayload: Add PDCurses and ncurses' libform/libmenu
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>
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak')
-rw-r--r-- | payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak b/payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak new file mode 100644 index 0000000000..7aa6c5f715 --- /dev/null +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/mscdos.mak @@ -0,0 +1,114 @@ +# NMAKE Makefile for PDCurses library - Microsoft C for DOS +# +# Usage: nmake -f [path\]dosmsc.mak [DEBUG=] [target] +# +# where target can be any of: +# [all|demos|pdcurses.lib|testcurs.exe...] + +# Change the memory MODEL here, if desired +MODEL = L # one of L, S, M, T, H, C +SIZE = LARGE # one of LARGE, SMALL, MEDIUM, TINY, HUGE, COMPACT + +O = obj + +!ifndef PDCURSES_SRCDIR +PDCURSES_SRCDIR = .. +!endif + +!include $(PDCURSES_SRCDIR)\version.mif +!include $(PDCURSES_SRCDIR)\libobjs.mif + +osdir = $(PDCURSES_SRCDIR)\dos + +PDCURSES_DOS_H = $(osdir)\pdcdos.h + +CC = cl + +!ifdef DEBUG +CFLAGS = /Od /Zi /DPDCDEBUG +LDFLAGS = /CO /NOE /SE:160 +!else +CFLAGS = /Ox +LDFLAGS = /NOE /SE:160 +!endif + +CPPFLAGS = -I$(PDCURSES_SRCDIR) + +BUILD = $(CC) /J /nologo /c /D$(SIZE) /A$(MODEL) $(CFLAGS) $(CPPFLAGS) + +LINK = link + +CCLIBS = + +LIBEXE = lib + +LIBCURSES = pdcurses.lib + +all: $(LIBCURSES) $(DEMOS) + +clean: + -del *.obj + -del *.lib + -del *.exe + +demos: $(DEMOS) + +DEMOOBJS = $(DEMOS:.exe=.obj) tui.obj + +$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS) +$(DEMOOBJS) : $(PDCURSES_CURSES_H) +$(DEMOS) : $(LIBCURSES) +panel.obj : $(PANEL_HEADER) +terminfo.obj: $(TERM_HEADER) + +$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) + $(LIBEXE) $@ @$(osdir)\mscdos.lrf + -copy $(LIBCURSES) panel.lib + +{$(srcdir)\}.c{}.obj: + $(BUILD) $< + +{$(osdir)\}.c{}.obj: + $(BUILD) $< + +{$(demodir)\}.c{}.obj: + $(BUILD) $< + +firework.exe: firework.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +newdemo.exe: newdemo.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +ptest.exe: ptest.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +rain.exe: rain.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +testcurs.exe: testcurs.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +tuidemo.exe: tuidemo.obj tui.obj + $(LINK) $(LDFLAGS) $*.obj+tui.obj,$*,,$(LIBCURSES); + +worm.exe: worm.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +xmas.exe: xmas.obj + $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES); + +ptest.obj: $(demodir)\ptest.c $(PANEL_HEADER) + $(BUILD) $(demodir)\ptest.c + +tui.obj: $(demodir)\tui.c $(demodir)\tui.h + $(BUILD) -I$(demodir) $(demodir)\tui.c + +tuidemo.obj: $(demodir)\tuidemo.c + $(BUILD) -I$(demodir) $(demodir)\tuidemo.c + +PLATFORM1 = Microsoft C +PLATFORM2 = Microsoft C for DOS +ARCNAME = pdc$(VER)msc + +!include $(PDCURSES_SRCDIR)\makedist.mif |