1# Watcom WMAKE Makefile for PDCurses library - Win32 Watcom C/C++ 10.6+ 2# 3# Usage: wmake -f [win32/]wccwin32.mak [DEBUG=Y] [WIDE=Y] [UTF8=Y] [target] 4# 5# where target can be any of: 6# [all|demos|pdcurses.lib|testcurs.exe...] 7 8!ifdef %PDCURSES_SRCDIR 9PDCURSES_SRCDIR = $(%PDCURSES_SRCDIR) 10!else 11PDCURSES_SRCDIR = .. 12!endif 13 14!include $(PDCURSES_SRCDIR)/version.mif 15 16osdir = $(PDCURSES_SRCDIR)/win32a 17 18CC = wcc386 19TARGET = nt_win 20 21CFLAGS = -ei -zq -wx -i=$(PDCURSES_SRCDIR) 22 23!ifeq DEBUG Y 24CFLAGS += -hd -od -d2 -dDEBUG -DPDCDEBUG 25LDFLAGS = DEBUG ALL op q sys $(TARGET) 26!else 27CFLAGS += -oneatx 28LDFLAGS = op q sys $(TARGET) 29!endif 30 31!ifeq WIDE Y 32CFLAGS += -DPDC_WIDE 33!endif 34 35!ifeq UTF8 Y 36CFLAGS += -DPDC_FORCE_UTF8 37!endif 38 39LIBEXE = wlib -q -n -t 40 41!include $(PDCURSES_SRCDIR)/watcom.mif 42 43$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) 44 $(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS) 45 copy $(LIBCURSES) panel.lib 46 47PLATFORM1 = Watcom C++ Win32a 48PLATFORM2 = Open Watcom 1.6 for Win32a 49ARCNAME = pdc$(VER)_wcc_w32 50 51!include $(PDCURSES_SRCDIR)/makedist.mif 52