1 # Watcom WMAKE Makefile for PDCurses library - OS/2 Open Watcom 1.1+
3 # Usage: wmake -f [path\]wccos2.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
)\os2
21 CFLAGS
= /bt
=$(TARGET
) /wx
/s
/zq
/i
=$(PDCURSES_SRCDIR
)
24 CFLAGS
+= /d2
/DPDCDEBUG
25 LDFLAGS
= D A op q sys
$(TARGET
)
28 LDFLAGS
= op q sys
$(TARGET
)
31 LIBEXE
= wlib
/q
/n
/b
/c
/t
33 !include $(PDCURSES_SRCDIR
)\watcom.mif
35 $(LIBCURSES
) : $(LIBOBJS
) $(PDCOBJS
)
36 $(LIBEXE
) $@
$(LIBOBJS
) $(PDCOBJS
)
37 -copy
$(LIBCURSES
) panel.lib
39 PLATFORM1
= Watcom C
++ OS
/2
40 PLATFORM2
= Open Watcom
1.6 for OS
/2
41 ARCNAME
= pdc
$(VER
)_wcc_os2
43 !include $(PDCURSES_SRCDIR
)\makedist.mif