libpayload: Add PDCurses and ncurses' libform/libmenu
[coreboot.git] / payloads / libpayload / curses / PDCurses-3.4 / dos / wccdos16.mak
1 # Watcom WMAKE Makefile for PDCurses library - DOS (16 bit) Watcom C/C++ 10.6+
2 #
3 # Usage: wmake -f [path\]wccdos16.mak [DEBUG=Y] [target]
4 #
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
7
8 # Change the memory MODEL here, if desired
9 MODEL           = l
10
11 !ifdef %PDCURSES_SRCDIR
12 PDCURSES_SRCDIR = $(%PDCURSES_SRCDIR)
13 !else
14 PDCURSES_SRCDIR = ..
15 !endif
16
17 !include $(PDCURSES_SRCDIR)\version.mif
18
19 osdir           = $(PDCURSES_SRCDIR)\dos
20
21 CC              = wcc
22 TARGET          = dos
23
24 CFLAGS          = /bt=$(TARGET) /zq /wx /m$(MODEL) /i=$(PDCURSES_SRCDIR)
25
26 !ifeq DEBUG Y
27 CFLAGS          += /d2 /DPDCDEBUG
28 LDFLAGS         = D W A op q sys $(TARGET)
29 !else
30 CFLAGS          += /oneatx
31 LDFLAGS         = op q sys $(TARGET)
32 !endif
33
34 LIBEXE          = wlib /q /n /t
35
36 !include $(PDCURSES_SRCDIR)\watcom.mif
37
38 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
39         %write wccdos.lrf $(LIBOBJS) $(PDCOBJS)
40         $(LIBEXE) $@ @wccdos.lrf
41         -del wccdos.lrf
42         -copy $(LIBCURSES) panel.lib
43
44 PLATFORM1       = Watcom C++ 16-bit DOS
45 PLATFORM2       = Open Watcom 1.6 for 16-bit DOS
46 ARCNAME         = pdc$(VER)16w
47
48 !include $(PDCURSES_SRCDIR)\makedist.mif