1 # Borland MAKE Makefile for PDCurses library - Win32 BC++ 4.0+
3 # Usage: make -f [path\]bccwin32.mak [DEBUG=] [WIDE=] [UTF8=] [target]
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
10 !ifndef PDCURSES_SRCDIR
14 !include $(PDCURSES_SRCDIR)\version.mif
15 !include $(PDCURSES_SRCDIR)\libobjs.mif
17 osdir = $(PDCURSES_SRCDIR)\win32
22 CFLAGS = -N -v -y -DPDCDEBUG
32 UTF8OPT = -DPDC_FORCE_UTF8
35 BUILD = $(CC) -I$(PDCURSES_SRCDIR) -c -Tpe -w32 $(CFLAGS) -w-par \
38 LIBEXE = tlib /C /E /0 /a
40 LIBCURSES = pdcurses.lib
42 all: $(LIBCURSES) $(DEMOS)
50 $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
52 $(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS)
53 -copy $(LIBCURSES) panel.lib
70 $(CC) -e$@ $** $(LIBCURSES)
72 tuidemo.exe: tuidemo.obj tui.obj $(LIBCURSES)
75 tui.obj: $(demodir)\tui.c $(demodir)\tui.h $(PDCURSES_CURSES_H)
76 $(BUILD) -I$(demodir) $(demodir)\tui.c
78 tuidemo.obj: $(demodir)\tuidemo.c $(PDCURSES_CURSES_H)
79 $(BUILD) -I$(demodir) $(demodir)\tuidemo.c
81 PLATFORM1 = Borland C++ Win32
82 PLATFORM2 = Borland C/C++ 5.5 for Win32
83 ARCNAME = pdc$(VER)_bcc_w32
85 !include $(PDCURSES_SRCDIR)\makedist.mif