1# Watcom WMAKE Makefile for PDCurses library - DOS (16 bit) Watcom C/C++ 10.6+ 2# 3# Usage: wmake -f [path\]wccdos16.mak [DEBUG=Y] [target] 4# 5# where target can be any of: 6# [all|demos|pdcurses.lib|testcurs.exe...] 7 8# Change the memory MODEL here, if desired 9MODEL = l 10 11!ifdef %PDCURSES_SRCDIR 12PDCURSES_SRCDIR = $(%PDCURSES_SRCDIR) 13!else 14PDCURSES_SRCDIR = .. 15!endif 16 17!include $(PDCURSES_SRCDIR)\version.mif 18 19osdir = $(PDCURSES_SRCDIR)\dos 20 21CC = wcc 22TARGET = dos 23 24CFLAGS = /bt=$(TARGET) /zq /wx /m$(MODEL) /i=$(PDCURSES_SRCDIR) 25 26!ifeq DEBUG Y 27CFLAGS += /d2 /DPDCDEBUG 28LDFLAGS = D W A op q sys $(TARGET) 29!else 30CFLAGS += /oneatx 31LDFLAGS = op q sys $(TARGET) 32!endif 33 34LIBEXE = wlib /q /n /t 35 36!include $(PDCURSES_SRCDIR)\watcom.mif 37 38$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) 39 %write wccdos.lrf $(LIBOBJS) $(PDCOBJS) 40 $(LIBEXE) $@ @wccdos.lrf 41 -del wccdos.lrf 42 -copy $(LIBCURSES) panel.lib 43 44PLATFORM1 = Watcom C++ 16-bit DOS 45PLATFORM2 = Open Watcom 1.6 for 16-bit DOS 46ARCNAME = pdc$(VER)16w 47 48!include $(PDCURSES_SRCDIR)\makedist.mif 49