drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / payloads / libpayload / curses / PDCurses / dos / mscdos.mak
blob7f776329798301924b679cd69edfa86e3b55f119
1 # NMAKE Makefile for PDCurses library - Microsoft C for DOS
3 # Usage: nmake -f [path\]dosmsc.mak [DEBUG=] [target]
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
8 # Change the memory MODEL here, if desired
9 MODEL = L # one of L, S, M, T, H, C
10 SIZE = LARGE # one of LARGE, SMALL, MEDIUM, TINY, HUGE, COMPACT
12 O = obj
14 !ifndef PDCURSES_SRCDIR
15 PDCURSES_SRCDIR = ..
16 !endif
18 !include $(PDCURSES_SRCDIR)\version.mif
19 !include $(PDCURSES_SRCDIR)\libobjs.mif
21 osdir = $(PDCURSES_SRCDIR)\dos
23 PDCURSES_DOS_H = $(osdir)\pdcdos.h
25 CC = cl
27 !ifdef DEBUG
28 CFLAGS = /Od /Zi /DPDCDEBUG
29 LDFLAGS = /CO /NOE /SE:160
30 !else
31 CFLAGS = /Ox
32 LDFLAGS = /NOE /SE:160
33 !endif
35 CPPFLAGS = -I$(PDCURSES_SRCDIR)
37 BUILD = $(CC) /J /nologo /c /D$(SIZE) /A$(MODEL) $(CFLAGS) $(CPPFLAGS)
39 LINK = link
41 CCLIBS =
43 LIBEXE = lib
45 LIBCURSES = pdcurses.lib
47 all: $(LIBCURSES) $(DEMOS)
49 clean:
50 -del *.obj
51 -del *.lib
52 -del *.exe
54 demos: $(DEMOS)
56 DEMOOBJS = $(DEMOS:.exe=.obj) tui.obj
58 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
59 $(DEMOOBJS) : $(PDCURSES_CURSES_H)
60 $(DEMOS) : $(LIBCURSES)
61 panel.obj : $(PANEL_HEADER)
62 terminfo.obj: $(TERM_HEADER)
64 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
65 $(LIBEXE) $@ @$(osdir)\mscdos.lrf
66 -copy $(LIBCURSES) panel.lib
68 {$(srcdir)\}.c{}.obj:
69 $(BUILD) $<
71 {$(osdir)\}.c{}.obj:
72 $(BUILD) $<
74 {$(demodir)\}.c{}.obj:
75 $(BUILD) $<
77 firework.exe: firework.obj
78 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
80 newdemo.exe: newdemo.obj
81 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
83 ptest.exe: ptest.obj
84 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
86 rain.exe: rain.obj
87 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
89 testcurs.exe: testcurs.obj
90 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
92 tuidemo.exe: tuidemo.obj tui.obj
93 $(LINK) $(LDFLAGS) $*.obj+tui.obj,$*,,$(LIBCURSES);
95 worm.exe: worm.obj
96 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
98 xmas.exe: xmas.obj
99 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
101 ptest.obj: $(demodir)\ptest.c $(PANEL_HEADER)
102 $(BUILD) $(demodir)\ptest.c
104 tui.obj: $(demodir)\tui.c $(demodir)\tui.h
105 $(BUILD) -I$(demodir) $(demodir)\tui.c
107 tuidemo.obj: $(demodir)\tuidemo.c
108 $(BUILD) -I$(demodir) $(demodir)\tuidemo.c
110 PLATFORM1 = Microsoft C
111 PLATFORM2 = Microsoft C for DOS
112 ARCNAME = pdc$(VER)msc
114 !include $(PDCURSES_SRCDIR)\makedist.mif