summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses/win32/wccwin32.mak
blob: 1363897be0166f9eb4475bf9654b8bfc4c63ae5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Watcom WMAKE Makefile for PDCurses library - Win32 Watcom C/C++ 10.6+
#
# Usage: wmake -f [win32\]wccwin32.mak [DEBUG=Y] [WIDE=Y] [UTF8=Y] [target]
#
# where target can be any of:
# [all|demos|pdcurses.lib|testcurs.exe...]

!ifdef %PDCURSES_SRCDIR
PDCURSES_SRCDIR	= $(%PDCURSES_SRCDIR)
!else
PDCURSES_SRCDIR	= ..
!endif

!include $(PDCURSES_SRCDIR)\version.mif

osdir		= $(PDCURSES_SRCDIR)\win32

CC		= wcc386
TARGET		= nt

CFLAGS		= /ei /zq /wx /i=$(PDCURSES_SRCDIR)

!ifeq DEBUG Y
CFLAGS		+= /d2 /DPDCDEBUG
LDFLAGS		= D W A op q sys $(TARGET)
!else
CFLAGS		+= /oneatx
LDFLAGS		= op q sys $(TARGET)
!endif

!ifeq WIDE Y
CFLAGS		+= /DPDC_WIDE
!endif

!ifeq UTF8 Y
CFLAGS		+= /DPDC_FORCE_UTF8
!endif

LIBEXE		= wlib /q /n /t

!include $(PDCURSES_SRCDIR)\watcom.mif

$(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
	$(LIBEXE) $@ $(LIBOBJS) $(PDCOBJS)
	-copy $(LIBCURSES) panel.lib

PLATFORM1	= Watcom C++ Win32
PLATFORM2	= Open Watcom 1.6 for Win32
ARCNAME		= pdc$(VER)_wcc_w32

!include $(PDCURSES_SRCDIR)\makedist.mif