From 3231091029fb41c509db31ab1912493984637d09 Mon Sep 17 00:00:00 2001 From: nishi Date: Thu, 13 Jun 2024 01:54:51 +0000 Subject: [PATCH] add stuff git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@284 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Makefiles/common-decl.mk | 3 ++- RemoteClient/Makefile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 RemoteClient/Makefile diff --git a/Makefiles/common-decl.mk b/Makefiles/common-decl.mk index 6c99d47..fbde8f3 100644 --- a/Makefiles/common-decl.mk +++ b/Makefiles/common-decl.mk @@ -23,6 +23,7 @@ PLATFORM_P = `uname -p | sed -E "s/[ \\(\\)]/-/g"` LINK_LIB = ../Library/$(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX) SERVER = ./Server SERVER_MODULE = tcpip.o +RCLI_MODULE = tcpip.o VERSION = `cat Library/dataworks.c | grep " dataworks_version " | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?'` -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_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" WINDRES="$(WINDRES)" YACC="$(YACC)" LEX="$(LEX)" LFLAGS="$(LFLAGS)" YFLAGS="$(YFLAGS)" SERVER_MODULE="$(SERVER_MODULE)" SERVLINK_LIB="$(SERVLINK_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_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" WINDRES="$(WINDRES)" YACC="$(YACC)" LEX="$(LEX)" LFLAGS="$(LFLAGS)" YFLAGS="$(YFLAGS)" SERVER_MODULE="$(SERVER_MODULE)" SERVLINK_LIB="$(SERVLINK_LIB)" RCLI_MODULE="$(RCLI_MODULE)" RCLILINK_LIB="$(RCLILINK_LIB)" diff --git a/RemoteClient/Makefile b/RemoteClient/Makefile new file mode 100644 index 0000000..1bdaf00 --- /dev/null +++ b/RemoteClient/Makefile @@ -0,0 +1,20 @@ +# $Id: Makefile 251 2024-06-12 05:57:04Z nishi $ + +.PHONY: all clean +.SUFFIXES: .c .o + +OBJS = rcli.o $(RCLI_MODULE) + +all: dataworks_server$(EXEC_SUFFIX) + +dataworks_remote_client$(EXEC_SUFFIX): $(OBJS) $(LINK_LIB) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(LINK_LIB) $(RCLILINK_LIB) + +dataworks.res: ../Client/dataworks.rc ../Binary/dataworks.ico + $(WINDRES) ../Client/dataworks.rc -O coff -o ./dataworks.res + +.c.o: + $(CC) $(CFLAGS) -I../Library -c -o $@ $< + +clean: + rm -f *.o *.so *.dll *.exe *.com dataworks_remote_client *.a *.lib *.res -- 2.43.0