mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
45 lines
912 B
Makefile
45 lines
912 B
Makefile
# Watcom WMAKE Makefile for PDCurses library - OS/2 Open Watcom 1.8+
|
|
#
|
|
# Usage: wmake -f [path\]Makefile.wcc [DEBUG=Y] [target]
|
|
#
|
|
# where target can be any of:
|
|
# [all|demos|pdcurses.lib|testcurs.exe...]
|
|
|
|
RM = del
|
|
|
|
!ifdef %PDCURSES_SRCDIR
|
|
PDCURSES_SRCDIR = $(%PDCURSES_SRCDIR)
|
|
!else
|
|
PDCURSES_SRCDIR = ..
|
|
!endif
|
|
|
|
!include $(PDCURSES_SRCDIR)/version.mif
|
|
|
|
osdir = $(PDCURSES_SRCDIR)/os2
|
|
|
|
CC = wcc386
|
|
TARGET = os2v2
|
|
|
|
CFLAGS = -bt=$(TARGET) -wx -s -zq -i=$(PDCURSES_SRCDIR) -i=c:\watcom\h\os2
|
|
|
|
!ifeq DEBUG Y
|
|
CFLAGS += -d2 -DPDCDEBUG
|
|
LDFLAGS = D A op q sys $(TARGET)
|
|
!else
|
|
CFLAGS += -oneatx
|
|
LDFLAGS = op q sys $(TARGET)
|
|
!endif
|
|
|
|
LIBEXE = wlib -q -n -b -c -t
|
|
|
|
!include $(PDCURSES_SRCDIR)/watcom.mif
|
|
|
|
$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
|
|
$(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS)
|
|
|
|
PLATFORM1 = Watcom C++ OS/2
|
|
PLATFORM2 = Open Watcom 2.0 for OS/2
|
|
ARCNAME = pdc$(VER)_wcc_os2
|
|
|
|
!include $(PDCURSES_SRCDIR)/makedist.mif
|