From 4f9ffe60a838bded62f8cfc6aeb797c5675b6afb Mon Sep 17 00:00:00 2001 From: nishi Date: Tue, 21 May 2024 02:50:20 +0000 Subject: [PATCH] watcom works git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@48 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Library/Makefile | 2 +- Platforms/watcom.mk | 3 ++- common-decl.mk | 1 + common.mk | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Makefile b/Library/Makefile index 42fd89a..c033494 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -11,7 +11,7 @@ $(LIB_PREFIX)dataworks$(LIB_SUFFIX): $(OBJS) $(SHCC) -shared $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX): $(OBJS) - $(AR) rcs $@ $(OBJS) + $(AR) $(AR_ARGS) $(OBJS) $(RANLIB) $@ .c.o: diff --git a/Platforms/watcom.mk b/Platforms/watcom.mk index b7a4c58..ca2658b 100644 --- a/Platforms/watcom.mk +++ b/Platforms/watcom.mk @@ -1,6 +1,7 @@ CC = WATCOM=$$WATCOM INCLUDE=$$WATCOM/h PATH=$$PATH:$$WATCOM/binl64 owcc SHCC = /bin/true -AR = /bin/true +AR = WATCOM=$$WATCOM INCLUDE=$$WATCOM/h PATH=$$PATH:$$WATCOM/binl64 wlib +AR_ARGS = -b -n -fag -o=\$$@ RANLIB = /bin/true LIB_PREFIX = LIB_SUFFIX = .dll diff --git a/common-decl.mk b/common-decl.mk index e6dce64..bd35c34 100644 --- a/common-decl.mk +++ b/common-decl.mk @@ -3,6 +3,7 @@ CC = cc SHCC = cc AR = ar +AR_ARGS = rcs \$$@ RANLIB = ranlib CFLAGS = -std=c99 -D_DEFAULT_SOURCE LDFLAGS = -L`pwd`/Library diff --git a/common.mk b/common.mk index 743655e..8c28f8e 100644 --- a/common.mk +++ b/common.mk @@ -1,6 +1,6 @@ # $Id$ -COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIN="$(LINK_LIB)" +COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIN="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" .PHONY: all no-doc replace format clean ./Library ./Client ./Document archive archive-prepare archive-cleanup archive-targz archive-zip -- 2.43.0