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
14 !ifndef PDCURSES_SRCDIR
18 !include $(PDCURSES_SRCDIR
)\version.mif
19 !include $(PDCURSES_SRCDIR
)\libobjs.mif
21 osdir
= $(PDCURSES_SRCDIR
)\dos
23 PDCURSES_DOS_H
= $(osdir
)\pdcdos.h
28 CFLAGS
= /Od
/Zi
/DPDCDEBUG
29 LDFLAGS
= /CO
/NOE
/SE
:160
32 LDFLAGS
= /NOE
/SE
:160
35 CPPFLAGS
= -I
$(PDCURSES_SRCDIR
)
37 BUILD
= $(CC
) /J
/nologo
/c
/D
$(SIZE
) /A
$(MODEL
) $(CFLAGS
) $(CPPFLAGS
)
45 LIBCURSES
= pdcurses.lib
47 all: $(LIBCURSES
) $(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
74 {$(demodir
)\
}.c
{}.obj
:
77 firework.exe
: firework.obj
78 $(LINK
) $(LDFLAGS
) $*.obj
,$*,,$(LIBCURSES
);
80 newdemo.exe
: newdemo.obj
81 $(LINK
) $(LDFLAGS
) $*.obj
,$*,,$(LIBCURSES
);
84 $(LINK
) $(LDFLAGS
) $*.obj
,$*,,$(LIBCURSES
);
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
);
96 $(LINK
) $(LDFLAGS
) $*.obj
,$*,,$(LIBCURSES
);
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