1 # Borland MAKE Makefile for PDCurses library - DOS BC++ 3.0+
3 # Usage: make -f [path\]bccdos.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
13 !ifndef PDCURSES_SRCDIR
17 !include $(PDCURSES_SRCDIR
)\version.mif
18 !include $(PDCURSES_SRCDIR
)\libobjs.mif
20 osdir
= $(PDCURSES_SRCDIR
)\dos
23 CFLAGS
= -N
-v
-y
-DPDCDEBUG
28 CPPFLAGS
= -I
$(PDCURSES_SRCDIR
)
30 BUILD
= $(CC
) -1- -K
-G
-rd
-d
-w-eff
-w-par
-c \
31 -m
$(MODEL
) $(CFLAGS
) $(CPPFLAGS
)
35 LIBCURSES
= pdcurses.lib
37 all: $(LIBCURSES
) $(DEMOS
)
47 $(LIBCURSES
) : $(LIBOBJS
) $(PDCOBJS
)
49 $(LIBEXE
) $@ @
$(osdir
)\bccdos.lrf
50 -copy
$(LIBCURSES
) panel.lib
67 $(CC
) -m
$(MODEL
) -e
$@
$** $(LIBCURSES
)
69 tuidemo.exe
: tuidemo.obj tui.obj
$(LIBCURSES
)
70 $(CC
) -m
$(MODEL
) -e
$@
$**
72 tui.obj
: $(demodir
)\tui.c
$(demodir
)\tui.h
$(PDCURSES_CURSES_H
)
73 $(BUILD
) -I
$(demodir
) $(demodir
)\tui.c
75 tuidemo.obj
: $(demodir
)\tuidemo.c
$(PDCURSES_CURSES_H
)
76 $(BUILD
) -I
$(demodir
) $(demodir
)\tuidemo.c
78 PLATFORM1
= Borland C
++ 3.1
79 PLATFORM2
= Borland C
/C
++ 3.1 for DOS
80 ARCNAME
= pdc
$(VER
)bcc
82 !include $(PDCURSES_SRCDIR
)\makedist.mif