watcom: add ENABLE_WERROR option to makefiles

This commit is contained in:
Anonymous Maarten
2022-10-07 00:17:25 +02:00
committed by Anonymous Maarten
parent 335c672498
commit be5f55c47e
4 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
# Open Watcom makefile to build SDL2 tests for OS/2
# wmake -f Makefile.os2
#
# To error out upon warnings: wmake -f Makefile.os2 ENABLE_WERROR=1
SYSTEM = os2v2
@@ -7,6 +9,9 @@ INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
CFLAGS+= -wx -wcd=303
!ifeq ENABLE_WERROR 1
CFLAGS+= -we
!endif
TNSRCS = testnative.c testnativeos2.c

View File

@@ -1,5 +1,7 @@
# Open Watcom makefile to build SDL2 tests for Win32
# wmake -f Makefile.w32
#
# To error out upon warnings: wmake -f Makefile.w32 ENABLE_WERROR=1
SYSTEM = nt
@@ -7,6 +9,9 @@ INCPATH = -I"$(%WATCOM)/h/nt" -I"$(%WATCOM)/h" -I"../src/video/khronos"
CFLAGS = -bt=nt -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
CFLAGS+= -wx -wcd=303
!ifeq ENABLE_WERROR 1
CFLAGS+= -we
!endif
CFLAGS+= -DSDL_MAIN_HANDLED
CFLAGS+= -DHAVE_OPENGL
GLLIBS = opengl32.lib