Debian Codegraph @

payloads/libpayload/curses/PDCurses/dos/mscdos.mak

raw
1 # NMAKE Makefile for PDCurses library - Microsoft C for DOS
2 #
3 # Usage: nmake -f [path\]dosmsc.mak [DEBUG=] [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 # one of L, S, M, T, H, C
10 SIZE = LARGE # one of LARGE, SMALL, MEDIUM, TINY, HUGE, COMPACT
11
12 O = obj
13
14 !ifndef PDCURSES_SRCDIR
15 PDCURSES_SRCDIR = ..
16 !endif
17
18 !include $(PDCURSES_SRCDIR)\version.mif
19 !include $(PDCURSES_SRCDIR)\libobjs.mif
20
21 osdir = $(PDCURSES_SRCDIR)\dos
22
23 PDCURSES_DOS_H = $(osdir)\pdcdos.h
24
25 CC = cl
26
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
34
35 CPPFLAGS = -I$(PDCURSES_SRCDIR)
36
37 BUILD = $(CC) /J /nologo /c /D$(SIZE) /A$(MODEL) $(CFLAGS) $(CPPFLAGS)
38
39 LINK = link
40
41 CCLIBS =
42
43 LIBEXE = lib
44
45 LIBCURSES = pdcurses.lib
46
47 all: $(LIBCURSES) $(DEMOS)
48
49 clean:
50 -del *.obj
51 -del *.lib
52 -del *.exe
53
54 demos: $(DEMOS)
55
56 DEMOOBJS = $(DEMOS:.exe=.obj) tui.obj
57
58 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
59 $(DEMOOBJS) : $(PDCURSES_CURSES_H)
60 $(DEMOS) : $(LIBCURSES)
61 panel.obj : $(PANEL_HEADER)
62 terminfo.obj: $(TERM_HEADER)
63
64 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
65 $(LIBEXE) $@ @$(osdir)\mscdos.lrf
66 -copy $(LIBCURSES) panel.lib
67
68 {$(srcdir)\}.c{}.obj:
69 $(BUILD) $<
70
71 {$(osdir)\}.c{}.obj:
72 $(BUILD) $<
73
74 {$(demodir)\}.c{}.obj:
75 $(BUILD) $<
76
77 firework.exe: firework.obj
78 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
79
80 newdemo.exe: newdemo.obj
81 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
82
83 ptest.exe: ptest.obj
84 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
85
86 rain.exe: rain.obj
87 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
88
89 testcurs.exe: testcurs.obj
90 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
91
92 tuidemo.exe: tuidemo.obj tui.obj
93 $(LINK) $(LDFLAGS) $*.obj+tui.obj,$*,,$(LIBCURSES);
94
95 worm.exe: worm.obj
96 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
97
98 xmas.exe: xmas.obj
99 $(LINK) $(LDFLAGS) $*.obj,$*,,$(LIBCURSES);
100
101 ptest.obj: $(demodir)\ptest.c $(PANEL_HEADER)
102 $(BUILD) $(demodir)\ptest.c
103
104 tui.obj: $(demodir)\tui.c $(demodir)\tui.h
105 $(BUILD) -I$(demodir) $(demodir)\tui.c
106
107 tuidemo.obj: $(demodir)\tuidemo.c
108 $(BUILD) -I$(demodir) $(demodir)\tuidemo.c
109
110 PLATFORM1 = Microsoft C
111 PLATFORM2 = Microsoft C for DOS
112 ARCNAME = pdc$(VER)msc
113
114 !include $(PDCURSES_SRCDIR)\makedist.mif