From: nishi Date: Tue, 18 Jun 2024 10:45:51 +0000 (+0000) Subject: add some extern flag X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2c2f5f30cca3289970a3777aa94b5f92657bc664;p=dataworks.git add some extern flag git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@339 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Makefiles/common-decl.mk b/Makefiles/common-decl.mk index f142967..ffa4569 100644 --- a/Makefiles/common-decl.mk +++ b/Makefiles/common-decl.mk @@ -9,7 +9,7 @@ AR_ARGS = rcs \$$@ RANLIB = ranlib WINDRES = windres CFLAGS = -g -std=c99 -D_DEFAULT_SOURCE $(DEBUGFLAGS) -LDFLAGS = -L`pwd`/Library +LDFLAGS = -L`pwd`/Library $(MORE_LDFLAGS) YFLAGS = -d -t -y LFLAGS = LIBS = @@ -29,6 +29,7 @@ RCLI = ./RemoteClient INSTALLER = SERVER_MODULE = tcpip.o RCLI_MODULE = tcpip.o +MD5SUM = md5sum 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)" RCLI_MODULE="$(RCLI_MODULE)" RCLILINK_LIB="$(RCLILINK_LIB)" INDEP="$(INDEP)" INDEP_TO="$(INDEP_TO)" diff --git a/Makefiles/deb.mk b/Makefiles/deb.mk index 05d44e4..d0b3d61 100644 --- a/Makefiles/deb.mk +++ b/Makefiles/deb.mk @@ -15,7 +15,7 @@ cp Client/dataworks workdir-deb/usr/bin/ cp Server/dataworks_server workdir-deb/usr/bin/ cp RemoteClient/dataworks_remote_client workdir-deb/usr/bin/ - cd workdir-deb && find usr -type f | xargs md5sum > DEBIAN/md5sums + cd workdir-deb && find usr -type f | xargs $(MD5SUM) > DEBIAN/md5sums echo "Package: dataworks" > workdir-deb/DEBIAN/control echo "Version: $(VERSION)" >> workdir-deb/DEBIAN/control echo "Architecture: $(DEB_ARCH)" >> workdir-deb/DEBIAN/control