1# Watcom WMAKE Makefile for PDCurses library - DOS/4GW Watcom C/C++ 10.6+ 2# 3# Usage: wmake -f [path\]wccdos4g.mak [DEBUG=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)\dos 17 18CC = wcc386 19TARGET = dos4g 20 21CFLAGS = /bt=$(TARGET) /zq /wx /mf /i=$(PDCURSES_SRCDIR) 22 23!ifeq DEBUG Y 24CFLAGS += /d2 /DPDCDEBUG 25LDFLAGS = D W A op q sys $(TARGET) 26!else 27CFLAGS += /oneatx 28LDFLAGS = op q sys $(TARGET) 29!endif 30 31LIBEXE = wlib /q /n /t 32 33!include $(PDCURSES_SRCDIR)\watcom.mif 34 35$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) 36 %write wccdos.lrf $(LIBOBJS) $(PDCOBJS) 37 $(LIBEXE) $@ @wccdos.lrf 38 -del wccdos.lrf 39 -copy $(LIBCURSES) panel.lib 40 41PLATFORM1 = Watcom C++ 32-bit DOS 42PLATFORM2 = Open Watcom 1.6 for 32-bit DOS 43ARCNAME = pdc$(VER)32w 44 45!include $(PDCURSES_SRCDIR)\makedist.mif 46