SDL_image: added a simple os/2 watcom makefile for testimage.

From 60ebf5dc28fd0ae1230c2a91335b526c1854d21a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 20 May 2022 18:37:10 +0300
Subject: [PATCH] added a simple os/2 watcom makefile for testimage.

---
 test/Makefile.os2 | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 test/Makefile.os2

diff --git a/test/Makefile.os2 b/test/Makefile.os2
new file mode 100644
index 0000000..830f354
--- /dev/null
+++ b/test/Makefile.os2
@@ -0,0 +1,31 @@
+# change DEPS_INC in order to point to the dependency headers.
+DEPS_INC=-IC:\SDL2DEV\h\SDL2
+# change DEPS_LIB in order to point to the dependency libraries.
+DEPS_LIB=C:\SDL2DEV\lib
+
+TARGETS = testimage.exe
+
+OBJS = $(TARGETS:.exe=.obj)
+
+all: $(TARGETS)
+
+INCPATH = -I$(%WATCOM)/h/os2 -I$(%WATCOM)/h -I.. $(DEPS_INC)
+CFLAGS_DEF = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier
+CFLAGS_EXE = $(CFLAGS_DEF)
+CFLAGS = $(CFLAGS_EXE) -ei -5s
+
+LIBPATH = ..
+LIBS = SDL2img.lib SDL2test.lib SDL2.lib
+
+.obj.exe:
+  wlink SYS os2v2 libpath $(LIBPATH) libpath $(DEPS_LIB) lib {$(LIBS)} op q file {$<} N $*
+
+testimage.obj: main.c
+  wcc386 $(CFLAGS) -fo=$^@ $<
+
+clean: .SYMBOLIC
+  @if exist *.obj rm *.obj
+  @if exist *.err rm *.err
+
+distclean: clean .SYMBOLIC
+  @if exist *.exe rm *.exe