SDL_image: fixes to os/2 makefile.

From a1141e91227753b4695af8fa8cd7c53cb1479afe Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 22 Jun 2023 11:55:24 +0300
Subject: [PATCH] fixes to os/2 makefile.

 Makefile.os2 | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/Makefile.os2 b/Makefile.os2
index 6149fadc..26aa118f 100644
--- a/Makefile.os2
+++ b/Makefile.os2
@@ -20,9 +20,9 @@ DEPS_INC=-IC:\SDL2DEV\h\SDL2 -IC:\SDL2DEV\h
 # change DEPS_LIB in order to point to the dependency libraries.
-SRCS = src\IMG.c src\IMG_bmp.c src\IMG_gif.c src\IMG_jpg.c src\IMG_lbm.c src\IMG_pcx.c src\IMG_png.c &
-       src\IMG_pnm.c src\IMG_svg.c src\IMG_tga.c src\IMG_tif.c src\IMG_xcf.c src\IMG_xpm.c src\IMG_xv.c &
-       src\IMG_webp.c src\IMG_qoi.c src\IMG_avif.c src\IMG_jxl.c src\IMG_stb.c
+SRCS = IMG.c IMG_bmp.c IMG_gif.c IMG_jpg.c IMG_lbm.c IMG_pcx.c IMG_png.c &
+       IMG_pnm.c IMG_svg.c IMG_tga.c IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c &
+       IMG_webp.c IMG_qoi.c IMG_avif.c IMG_jxl.c IMG_stb.c
 LIBS = libpng.lib libtiff.lib zlib.lib jpeg.lib webpdec.lib webpdemux.lib SDL2.lib
@@ -33,7 +33,7 @@ CFLAGS_BASE+= -wx -wcd=202
 CFLAGS_BASE+= -wcd=303
 # include paths:
 CFLAGS_BASE+= -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
-CFLAGS_BASE+= -Iinclude -Isrc $(DEPS_INC)
+CFLAGS_BASE+= -Iinclude $(DEPS_INC)
 # to build a dll:
 CFLAGS+= -bd
@@ -86,19 +86,20 @@ $(LNKFILE):
   @%append $@ OPTION OSNAME='OS/2 and eComStation'
   @%append $@ OPTION SHOWDEAD
+.c: ./src
   wcc386 $(CFLAGS) -fo=$^@ $<
-examples\showimage.obj: examples\showimage.c
+showimage.obj: examples/showimage.c
   wcc386 $(CFLAGS_BASE) -fo=$^@ $<
-examples\showanim.obj: examples\showanim.c
+showanim.obj: examples/showanim.c
   wcc386 $(CFLAGS_BASE) -fo=$^@ $<
-showimage.exe: $(LIBFILE) examples\showimage.obj
+showimage.exe: $(LIBFILE) showimage.obj
   wlink SYS os2v2 OP q LIBPATH $(DEPS_LIB) LIBR {$(LIBFILE) SDL2.lib} F {showimage.obj}  N showimage.exe
-showanim.exe: $(LIBFILE) examples\showanim.obj
+showanim.exe: $(LIBFILE) showanim.obj
   wlink SYS os2v2 OP q LIBPATH $(DEPS_LIB) LIBR {$(LIBFILE) SDL2.lib} F {showanim.obj}  N showanim.exe
 clean: .SYMBOLIC