libpayload: Add PDCurses and ncurses' libform/libmenu
[coreboot.git] / payloads / libpayload / curses / PDCurses-3.4 / win32 / bccwin32.mak
1 # Borland MAKE Makefile for PDCurses library - Win32 BC++ 4.0+
2 #
3 # Usage: make -f [path\]bccwin32.mak [DEBUG=] [WIDE=] [UTF8=] [target]
4 #
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
7
8 O = obj
9
10 !ifndef PDCURSES_SRCDIR
11 PDCURSES_SRCDIR = ..
12 !endif
13
14 !include $(PDCURSES_SRCDIR)\version.mif
15 !include $(PDCURSES_SRCDIR)\libobjs.mif
16
17 osdir           = $(PDCURSES_SRCDIR)\win32
18
19 CC              = bcc32 -q
20
21 !ifdef DEBUG
22 CFLAGS          = -N -v -y -DPDCDEBUG
23 !else
24 CFLAGS          = -O
25 !endif
26
27 !ifdef WIDE
28 WIDEOPT         = -DPDC_WIDE
29 !endif
30
31 !ifdef UTF8
32 UTF8OPT         = -DPDC_FORCE_UTF8
33 !endif
34
35 BUILD           = $(CC) -I$(PDCURSES_SRCDIR) -c -Tpe -w32 $(CFLAGS) -w-par \
36 $(WIDEOPT) $(UTF8OPT)
37
38 LIBEXE          = tlib /C /E /0 /a
39
40 LIBCURSES       = pdcurses.lib
41
42 all:    $(LIBCURSES) $(DEMOS)
43
44 clean:
45         -del *.obj
46         -del *.lib
47         -del *.tds
48         -del *.exe
49
50 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
51         -del $@
52         $(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS)
53         -copy $(LIBCURSES) panel.lib
54
55 .autodepend
56
57 {$(srcdir)\}.c.obj:
58         $(BUILD) $<
59
60 {$(osdir)\}.c.obj:
61         $(BUILD) $<
62
63 {$(demodir)\}.c.obj:
64         $(BUILD) $<
65
66 .c.obj:
67         $(BUILD) $<
68
69 .obj.exe:
70         $(CC) -e$@ $** $(LIBCURSES)
71
72 tuidemo.exe:    tuidemo.obj tui.obj $(LIBCURSES)
73         $(CC) -e$@ $**
74
75 tui.obj: $(demodir)\tui.c $(demodir)\tui.h $(PDCURSES_CURSES_H)
76         $(BUILD) -I$(demodir) $(demodir)\tui.c
77
78 tuidemo.obj: $(demodir)\tuidemo.c $(PDCURSES_CURSES_H)
79         $(BUILD) -I$(demodir) $(demodir)\tuidemo.c
80
81 PLATFORM1 = Borland C++ Win32
82 PLATFORM2 = Borland C/C++ 5.5 for Win32
83 ARCNAME = pdc$(VER)_bcc_w32
84
85 !include $(PDCURSES_SRCDIR)\makedist.mif