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.
PDCursesMod/wingui/Makefile.dmc

315 lines
6.6 KiB
Makefile

# Makefile for PDCurses library - WIN32 Digital Mars
#
# Usage: make -f Makefile.dmc [target]
#
# where target can be any of:
# [all|demos|tests|pdcurses.lib|testcurs.exe...]
PDCURSES_SRCDIR = ..
PDCURSES_CURSES_H = $(PDCURSES_SRCDIR)\curses.h
PDCURSES_CURSPRIV_H = $(PDCURSES_SRCDIR)\curspriv.h
PDCURSES_HEADERS = $(PDCURSES_CURSES_H) $(PDCURSES_CURSPRIV_H)
PANEL_HEADER = $(PDCURSES_SRCDIR)\panel.h
TERM_HEADER = $(PDCURSES_SRCDIR)\term.h
srcdir = $(PDCURSES_SRCDIR)\pdcurses
osdir = $(PDCURSES_SRCDIR)\wingui
demodir = $(PDCURSES_SRCDIR)\demos
testdir = $(PDCURSES_SRCDIR)\tests
PDCURSES_WIN_H = $(osdir)\pdcwin.h
CC = dmc
CFLAGS = -c -o+space -Nc
# CPPFLAGS = -I$(PDCURSES_SRCDIR)
CPPFLAGS = -I$(PDCURSES_SRCDIR) -DPDC_WIDE
LINK = dmc
LIBEXE = lib
LIBCURSES = pdcurses.lib
BUILD = $(CC) $(CFLAGS) $(CPPFLAGS)
DEMOS = calendar.exe firework.exe init_col.exe mbrot.exe \
newtest.exe ozdemo.exe picsview.exe ptest.exe rain.exe speed.exe \
testcurs.exe test_pan.exe tuidemo.exe widetest.exe worm.exe xmas.exe
TESTS = brk_test.exe del_test.exe focus.exe ins_del.exe \
keytest.exe opaque.exe restart.exe ripoff.exe show_col.exe
all: $(LIBCURSES) $(DEMOS)
tests: $(TESTS)
clean:
-del *.obj 2>NUL
-del *.lib 2>NUL
-del *.exe 2>NUL
-del *.map 2>NUL
LIBOBJS = addch.obj addchstr.obj addstr.obj attr.obj beep.obj bkgd.obj \
border.obj clear.obj color.obj delch.obj deleteln.obj getch.obj \
getstr.obj getyx.obj inch.obj inchstr.obj initscr.obj inopts.obj \
insch.obj insstr.obj instr.obj kernel.obj keyname.obj mouse.obj move.obj \
outopts.obj overlay.obj pad.obj panel.obj printw.obj refresh.obj \
scanw.obj scr_dump.obj scroll.obj slk.obj termattr.obj terminfo.obj \
touch.obj util.obj window.obj debug.obj
PDCOBJS = pdcclip.obj pdcdisp.obj pdcgetsc.obj pdckbd.obj pdcscrn.obj \
pdcsetsc.obj pdcutil.obj
DEMOOBS = calendar.obj firework.obj init_col.obj mbrot.obj \
newtest.obj ozdemo.obj picsview.obj ptest.obj rain.obj speed.obj \
testcurs.obj test_pan.obj tuidemo.obj widetest.obj worm.obj xmas.obj tui.obj
TESTOBS = brk_test.obj del_test.obj focus.obj ins_del.obj \
keytest.obj opaque.obj restart.obj ripoff.obj show_col.obj
LIBS = advapi32.lib gdi32.lib user32.lib shell32.lib comdlg32.lib winmm.lib
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)
panel.obj ptest.obj: $(PANEL_HEADER)
terminfo.obj : $(TERM_HEADER)
$(DEMOOBJS) : $(PDCURSES_CURSES_H)
$(DEMOS) : $(LIBCURSES)
$(TESTOBJS) : $(PDCURSES_CURSES_H)
$(TESTS) : $(LIBCURSES)
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
$(LIBEXE) -c $@ $(LIBOBJS) $(PDCOBJS)
-copy $(LIBCURSES) panel.lib
SRCBUILD = $(BUILD) $(srcdir)\$*.c
OSBUILD = $(BUILD) $(osdir)\$*.c
DEMOBUILD = $(LINK) $(CPPFLAGS) -o+space $@ $**
TESTBUILD = $(LINK) $(CPPFLAGS) -o+space $@ $**
addch.obj: $(srcdir)\addch.c
$(SRCBUILD)
addchstr.obj: $(srcdir)\addchstr.c
$(SRCBUILD)
addstr.obj: $(srcdir)\addstr.c
$(SRCBUILD)
attr.obj: $(srcdir)\attr.c
$(SRCBUILD)
beep.obj: $(srcdir)\beep.c
$(SRCBUILD)
bkgd.obj: $(srcdir)\bkgd.c
$(SRCBUILD)
border.obj: $(srcdir)\border.c
$(SRCBUILD)
clear.obj: $(srcdir)\clear.c
$(SRCBUILD)
color.obj: $(srcdir)\color.c
$(SRCBUILD)
delch.obj: $(srcdir)\delch.c
$(SRCBUILD)
deleteln.obj: $(srcdir)\deleteln.c
$(SRCBUILD)
getch.obj: $(srcdir)\getch.c
$(SRCBUILD)
getstr.obj: $(srcdir)\getstr.c
$(SRCBUILD)
getyx.obj: $(srcdir)\getyx.c
$(SRCBUILD)
inch.obj: $(srcdir)\inch.c
$(SRCBUILD)
inchstr.obj: $(srcdir)\inchstr.c
$(SRCBUILD)
initscr.obj: $(srcdir)\initscr.c
$(SRCBUILD)
inopts.obj: $(srcdir)\inopts.c
$(SRCBUILD)
insch.obj: $(srcdir)\insch.c
$(SRCBUILD)
insstr.obj: $(srcdir)\insstr.c
$(SRCBUILD)
instr.obj: $(srcdir)\instr.c
$(SRCBUILD)
kernel.obj: $(srcdir)\kernel.c
$(SRCBUILD)
keyname.obj: $(srcdir)\keyname.c
$(SRCBUILD)
mouse.obj: $(srcdir)\mouse.c
$(SRCBUILD)
move.obj: $(srcdir)\move.c
$(SRCBUILD)
outopts.obj: $(srcdir)\outopts.c
$(SRCBUILD)
overlay.obj: $(srcdir)\overlay.c
$(SRCBUILD)
pad.obj: $(srcdir)\pad.c
$(SRCBUILD)
panel.obj: $(srcdir)\panel.c
$(SRCBUILD)
printw.obj: $(srcdir)\printw.c
$(SRCBUILD)
refresh.obj: $(srcdir)\refresh.c
$(SRCBUILD)
scanw.obj: $(srcdir)\scanw.c
$(SRCBUILD)
scr_dump.obj: $(srcdir)\scr_dump.c
$(SRCBUILD)
scroll.obj: $(srcdir)\scroll.c
$(SRCBUILD)
slk.obj: $(srcdir)\slk.c
$(SRCBUILD)
termattr.obj: $(srcdir)\termattr.c
$(SRCBUILD)
terminfo.obj: $(srcdir)\terminfo.c
$(SRCBUILD)
touch.obj: $(srcdir)\touch.c
$(SRCBUILD)
util.obj: $(srcdir)\util.c
$(SRCBUILD)
window.obj: $(srcdir)\window.c
$(SRCBUILD)
debug.obj: $(srcdir)\debug.c
$(SRCBUILD)
pdcclip.obj: $(osdir)\pdcclip.c
$(OSBUILD)
pdcdisp.obj: $(osdir)\pdcdisp.c
$(OSBUILD)
pdcgetsc.obj: $(osdir)\pdcgetsc.c
$(OSBUILD)
pdckbd.obj: $(osdir)\pdckbd.c
$(OSBUILD)
pdcscrn.obj: $(osdir)\pdcscrn.c
$(OSBUILD)
pdcsetsc.obj: $(osdir)\pdcsetsc.c
$(OSBUILD)
pdcutil.obj: $(osdir)\pdcutil.c
$(OSBUILD)
calendar.exe: $(demodir)\calendar.c
$(DEMOBUILD) $(LIBS)
firework.exe: $(demodir)\firework.c
$(DEMOBUILD) $(LIBS)
init_col.exe: $(demodir)\init_col.c
$(DEMOBUILD) $(LIBS)
mbrot.exe: $(demodir)\mbrot.c
$(DEMOBUILD) $(LIBS)
newtest.exe: $(demodir)\newtest.c
$(DEMOBUILD) $(LIBS)
ozdemo.exe: $(demodir)\ozdemo.c
$(DEMOBUILD) $(LIBS)
picsview.exe: $(demodir)\picsview.c
$(DEMOBUILD) $(LIBS)
ptest.exe: $(demodir)\ptest.c
$(DEMOBUILD) $(LIBS)
rain.exe: $(demodir)\rain.c
$(DEMOBUILD) $(LIBS)
speed.exe: $(demodir)\speed.c
$(DEMOBUILD) $(LIBS)
testcurs.exe: $(demodir)\testcurs.c
$(DEMOBUILD) $(LIBS)
test_pan.exe: $(demodir)\test_pan.c
$(DEMOBUILD) $(LIBS)
tuidemo.exe: tuidemo.obj tui.obj
$(DEMOBUILD) $(LIBS)
worm.exe: $(demodir)\worm.c
$(DEMOBUILD) $(LIBS)
xmas.exe: $(demodir)\xmas.c
$(DEMOBUILD) $(LIBS)
tui.obj: $(demodir)\tui.c $(demodir)\tui.h
$(BUILD) -I$(demodir) $(demodir)\$*.c
tuidemo.obj: $(demodir)\tuidemo.c
$(BUILD) -I$(demodir) $(demodir)\$*.c
brk_test.exe: $(testdir)\brk_test.c
$(TESTBUILD) $(LIBS)
del_test.exe: $(testdir)\del_test.c
$(TESTBUILD) $(LIBS)
focus.exe: $(testdir)\focus.c
$(TESTBUILD) $(LIBS)
ins_del.exe: $(testdir)\ins_del.c
$(TESTBUILD) $(LIBS)
key_test.exe: $(testdir)\key_test.c
$(TESTBUILD) $(LIBS)
opaque.exe: $(testdir)\opaque.c
$(TESTBUILD) $(LIBS)
restart.exe: $(testdir)\restart.c
$(TESTBUILD) $(LIBS)
ripoff.exe: $(testdir)\ripoff.c
$(TESTBUILD) $(LIBS)
show_col.exe: $(testdir)\show_col.c
$(TESTBUILD) $(LIBS)