1 # Watcom WMAKE Makefile for PDCurses library - DOS/4GW Watcom C/C++ 10.6+
3 # Usage: wmake -f [path\]wccdos4g.mak [DEBUG=Y] [target]
5 # where target can be any of:
6 # [all|demos|pdcurses.lib|testcurs.exe...]
8 !ifdef %PDCURSES_SRCDIR
9 PDCURSES_SRCDIR
= $(%PDCURSES_SRCDIR
)
14 !include $(PDCURSES_SRCDIR
)\version.mif
16 osdir
= $(PDCURSES_SRCDIR
)\dos
21 CFLAGS
= /bt
=$(TARGET
) /zq
/wx
/mf
/i
=$(PDCURSES_SRCDIR
)
24 CFLAGS
+= /d2
/DPDCDEBUG
25 LDFLAGS
= D W A op q sys
$(TARGET
)
28 LDFLAGS
= op q sys
$(TARGET
)
31 LIBEXE
= wlib
/q
/n
/t
33 !include $(PDCURSES_SRCDIR
)\watcom.mif
35 $(LIBCURSES
) : $(LIBOBJS
) $(PDCOBJS
)
36 %write wccdos.lrf
$(LIBOBJS
) $(PDCOBJS
)
37 $(LIBEXE
) $@ @wccdos.lrf
39 -copy
$(LIBCURSES
) panel.lib
41 PLATFORM1
= Watcom C
++ 32-bit DOS
42 PLATFORM2
= Open Watcom
1.6 for
32-bit DOS
43 ARCNAME
= pdc
$(VER
)32w
45 !include $(PDCURSES_SRCDIR
)\makedist.mif