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.
81 lines
1.4 KiB
Makefile
81 lines
1.4 KiB
Makefile
# Borland MAKE Makefile for PDCurses library - Win32 BC++ 4.0+
|
|
#
|
|
# Usage: make -f [path\]Makefile.bcc [DEBUG=] [WIDE=] [UTF8=] [target]
|
|
#
|
|
# where target can be any of:
|
|
# [all|demos|pdcurses.lib|testcurs.exe...]
|
|
|
|
O = obj
|
|
E = .exe
|
|
|
|
!ifndef PDCURSES_SRCDIR
|
|
PDCURSES_SRCDIR = ..
|
|
!endif
|
|
|
|
osdir = $(PDCURSES_SRCDIR)\wingui
|
|
common = $(PDCURSES_SRCDIR)\common
|
|
|
|
!include $(common)\libobjs.mif
|
|
|
|
CC = bcc32 -q
|
|
|
|
!ifdef DEBUG
|
|
CFLAGS = -N -v -y -DPDCDEBUG -DNO_STDINT_H
|
|
!else
|
|
CFLAGS = -O -DNO_STDINT_H
|
|
!endif
|
|
|
|
!ifdef UTF8
|
|
WIDEOPT = -DPDC_WIDE -DPDC_FORCE_UTF8
|
|
!else
|
|
!ifdef WIDE
|
|
WIDEOPT = -DPDC_WIDE
|
|
!endif
|
|
!endif
|
|
|
|
BUILD = $(CC) -I$(PDCURSES_SRCDIR) -c -Tpe -w32 $(CFLAGS) -w-par \
|
|
$(WIDEOPT)
|
|
|
|
LIBEXE = tlib /C /E /0 /a
|
|
|
|
LIBCURSES = pdcurses.lib
|
|
|
|
all: $(LIBCURSES) $(DEMOS)
|
|
|
|
clean:
|
|
-del *.obj 2>NUL
|
|
-del *.lib 2>NUL
|
|
-del *.tds 2>NUL
|
|
-del *.exe 2>NUL
|
|
|
|
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
|
|
-del $@ 2>NUL
|
|
$(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS)
|
|
-copy $(LIBCURSES) panel.lib
|
|
|
|
.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
|