Files
dosbox-x/vs2015/libpdcurses/os2/Makefile.bcc
2018-02-21 00:13:19 -05:00

84 lines
1.4 KiB
Makefile

# Borland MAKE Makefile for PDCurses library - OS/2 BC++ 2.0+
#
# Usage: make -f [path\]Makefile.bcc [DEBUG=] [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|testcurs.exe...]
O = obj
E = .exe
RM = del
!ifndef PDCURSES_SRCDIR
PDCURSES_SRCDIR = ..
!endif
!include $(PDCURSES_SRCDIR)\version.mif
!include $(PDCURSES_SRCDIR)\libobjs.mif
osdir = $(PDCURSES_SRCDIR)\os2
CC = bcc
!ifdef DEBUG
CFLAGS = -N -v -y -DPDCDEBUG
!else
CFLAGS = -O
!endif
CPPFLAGS = -I$(PDCURSES_SRCDIR)
BUILD = $(CC) -c $(CFLAGS) $(CPPFLAGS)
LINK = tlink
LIBEXE = tlib /C /E
LIBCURSES = pdcurses.lib
all: $(LIBCURSES) $(DEMOS)
clean:
-$(RM) *.obj
-$(RM) *.lib
-$(RM) *.map
-$(RM) *.exe
demos: $(DEMOS)
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
-$(RM) $@
$(LIBEXE) $@ @$(PDCURSES_SRCDIR)\borland.lrf
.autodepend
{$(srcdir)\}.c.obj:
$(BUILD) $<
{$(osdir)\}.c.obj:
$(BUILD) $<
{$(demodir)\}.c.obj:
$(BUILD) $<
.c.obj:
$(BUILD) $<
.obj.exe:
$(CC) -e$@ $** $(LIBCURSES)
tuidemo.exe: tuidemo.obj tui.obj $(LIBCURSES)
$(CC) -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
PLATFORM1 = Borland C++ OS/2 2.0
PLATFORM2 = Borland C/C++ OS/2 2.0
ARCNAME = pdc$(VER)bcos2
!include $(PDCURSES_SRCDIR)\makedist.mif