From 0ccda22c12a5eb29efcffa26a9cb2db10d1b325e Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 21 May 2024 00:07:58 +0000 Subject: [PATCH] generate implib git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@46 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Library/Makefile | 2 +- Platforms/win32.mk | 1 + Platforms/win64.mk | 1 + common.mk | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Makefile b/Library/Makefile index 60a464f..461eb25 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -18,4 +18,4 @@ $(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX): $(OBJS) $(CC) $(CFLAGS) -DPLATFORM_M=\"$(PLATFORM_M)\" -DPLATFORM_P=\"$(PLATFORM_P)\" -fPIC -c -o $@ $< clean: - rm -f *.o *.so *.dll *.a + rm -f *.o *.so *.dll *.a *.lib diff --git a/Platforms/win32.mk b/Platforms/win32.mk index d316dfe..0c6bf5c 100644 --- a/Platforms/win32.mk +++ b/Platforms/win32.mk @@ -8,3 +8,4 @@ STATICLIB_PREFIX = STATICLIB_SUFFIX = .a PLATFORM_M = i686 PLATFORM_P = i686 +LDFLAGS += -Wl,--out-implib,./dataworks.lib diff --git a/Platforms/win64.mk b/Platforms/win64.mk index 81c23bd..ff52002 100644 --- a/Platforms/win64.mk +++ b/Platforms/win64.mk @@ -8,3 +8,4 @@ STATICLIB_PREFIX = STATICLIB_SUFFIX = .a PLATFORM_M = x86_64 PLATFORM_P = x86_64 +LDFLAGS += -Wl,--out-implib,./dataworks.lib diff --git a/common.mk b/common.mk index 62b6e57..9cb3001 100644 --- a/common.mk +++ b/common.mk @@ -45,6 +45,7 @@ archive-prepare: all mkdir -p dataworks-dist/Document cp Library/*$(LIB_SUFFIX) dataworks-dist/Library/ cp Library/*$(STATICLIB_SUFFIX) dataworks-dist/Library/ + -cp Library/*.lib dataworks-dist/Library/ cp Library/*.h dataworks-dist/Library/ cp Client/dataworks$(EXEC_SUFFIX) dataworks-dist/Client/ cp -rf Document/doc/html dataworks-dist/Document/html -- 2.43.0