You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.4 KiB
Makefile
82 lines
1.4 KiB
Makefile
# Borland Makefile for PDCurses - DOS
|
|
#
|
|
# Usage: make -f [path\]Makefile.bcc [DEBUG=] [MODEL=c|h|l|m|s] [target]
|
|
#
|
|
# where target can be any of:
|
|
# [all|demos|pdcurses.lib|testcurs.exe...]
|
|
|
|
!ifndef MODEL
|
|
MODEL = l
|
|
!endif
|
|
|
|
O = obj
|
|
E = .exe
|
|
RM = del
|
|
|
|
!ifndef PDCURSES_SRCDIR
|
|
PDCURSES_SRCDIR = ..
|
|
!endif
|
|
|
|
!include $(PDCURSES_SRCDIR)\common\libobjs.mif
|
|
|
|
osdir = $(PDCURSES_SRCDIR)\dos
|
|
|
|
!ifdef DEBUG
|
|
CFLAGS = -N -v -y -DPDCDEBUG
|
|
!else
|
|
CFLAGS = -O
|
|
!endif
|
|
|
|
CPPFLAGS = -I$(PDCURSES_SRCDIR)
|
|
|
|
!ifdef OLD_BCC
|
|
BUILD = $(CC) -DNO_STDINT_H -K -G -rd -d -w-eff -w-par -c \
|
|
$(CFLAGS) $(CPPFLAGS)
|
|
!else
|
|
BUILD = $(CC) -1- -G -d -w-par -c -m$(MODEL) $(CFLAGS) $(CPPFLAGS)
|
|
!endif
|
|
|
|
LIBEXE = tlib /C /E
|
|
|
|
LIBCURSES = pdcurses.lib
|
|
|
|
all: $(LIBCURSES)
|
|
|
|
clean:
|
|
-$(RM) *.obj
|
|
-$(RM) *.lib
|
|
-$(RM) *.map
|
|
-$(RM) *.exe
|
|
|
|
demos: $(LIBCURSES) $(DEMOS)
|
|
|
|
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
|
|
-$(RM) $@
|
|
$(LIBEXE) $@ @$(PDCURSES_SRCDIR)\common\borland.lrf
|
|
|
|
.autodepend
|
|
|
|
{$(srcdir)\}.c.obj:
|
|
$(BUILD) $<
|
|
|
|
{$(osdir)\}.c.obj:
|
|
$(BUILD) $<
|
|
|
|
{$(demodir)\}.c.obj:
|
|
$(BUILD) $<
|
|
|
|
.c.obj:
|
|
$(BUILD) $<
|
|
|
|
.obj.exe:
|
|
$(CC) -m$(MODEL) -e$@ $** $(LIBCURSES)
|
|
|
|
tuidemo.exe: tuidemo.obj tui.obj $(LIBCURSES)
|
|
$(CC) -m$(MODEL) -e$@ $**
|
|
|
|
tui.obj: $(demodir)\tui.c $(demodir)\tui.h $(PDCURSES_CURSES_H)
|
|
$(BUILD) -I$(demodir) $(demodir)\tui.c
|
|
|
|
tuidemo.obj: $(demodir)\tuidemo.c $(PDCURSES_CURSES_H)
|
|
$(BUILD) -I$(demodir) $(demodir)\tuidemo.c
|