From 354793dc6a700aa312a6bda66e39f65fd4a2f2ad Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 10 Jul 2021 23:55:02 +0300
Subject: [PATCH] windows watcom makefile: fixed import library generation
---
src/Makefile.w32 | 6 ++++--
src/{SDL12.lbc => SDL12.exports} | 0
2 files changed, 4 insertions(+), 2 deletions(-)
rename src/{SDL12.lbc => SDL12.exports} (100%)
diff --git a/src/Makefile.w32 b/src/Makefile.w32
index ae610e6..bd5bf39 100644
--- a/src/Makefile.w32
+++ b/src/Makefile.w32
@@ -47,7 +47,7 @@ $(DLLFILE): compiling_info $(object_files) $(resource_obj) $(LNKFILE)
$(LIBFILE): $(DLLFILE)
@echo * Creating LIB file: $@
- wlib -q -b -n -c -pa -s -t -zld -ii -io $* $(DLLFILE)
+ wlib -q -b -n -c -pa -s -t -zld -ii -io $* @SDL12.lbc
compiling_info : .symbolic
@echo * Compiling...
@@ -58,7 +58,8 @@ $(LNKFILE):
@%append $@ SYSTEM nt_dll INITINSTANCE TERMINSTANCE
@%append $@ NAME $(DLLFILE)
@for %i in ($(object_files)) do @%append $@ FILE %i
- @%append $@ EXPORT=SDL12.lbc
+ @%append $@ EXPORT=SDL12.exports
+ @%append $@ OPTION IMPF=SDL12.lbc
@%append $@ OPTION RESOURCE=$(resource_obj)
@%append $@ OPTION QUIET
@%append $@ OPTION MAP=$^&.map
@@ -69,6 +70,7 @@ clean: .SYMBOLIC
@echo * Clean: $(LIBNAME) $(VERSION)
@if exist *.obj rm *.obj
@if exist *.res rm *.res
+ @if exist *.map rm *.lbc
@if exist *.map rm *.map
@if exist $(LNKFILE) rm $(LNKFILE)
diff --git a/src/SDL12.lbc b/src/SDL12.exports
similarity index 100%
rename from src/SDL12.lbc
rename to src/SDL12.exports