From 7f449f97e9afc4d52f4ea00b7113acfac09b5584 Mon Sep 17 00:00:00 2001 From: Sandro Kalatozishvili Date: Sat, 12 Aug 2023 13:46:03 +0400 Subject: [PATCH] Adjusted indent in recept --- src/info.h | 2 +- src/make.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/info.h b/src/info.h index fbe35fc..fdf046d 100644 --- a/src/info.h +++ b/src/info.h @@ -11,7 +11,7 @@ #define SMAKE_VERSION_MAX 1 #define SMAKE_VERSION_MIN 1 -#define SMAKE_BUILD_NUMBER 15 +#define SMAKE_BUILD_NUMBER 16 #ifndef _SMAKE_VERSION_H_ #define _SMAKE_VERSION_H_ diff --git a/src/make.c b/src/make.c index e0ed0d4..a6b604a 100644 --- a/src/make.c +++ b/src/make.c @@ -463,7 +463,7 @@ xbool_t SMake_WriteMake(smake_ctx_t *pCtx) XArray_Sort(&pCtx->pathArr, SMake_CompareLen, NULL); SMake_SerializeArray(&pCtx->pathArr, ":", sVPath, sizeof(sVPath)); - const char *pFPICOption = bShared ? "-fPIC" : XSTR_EMPTY; + const char *pFPICOption = bShared ? " -fPIC" : XSTR_EMPTY; xbool_t bInstallIncludes = xstrused(pCtx->sHeaderDst); xbool_t bInstallBinary = xstrused(pCtx->sBinaryDst); int bVPathLen = strlen(sVPath); @@ -475,7 +475,7 @@ xbool_t SMake_WriteMake(smake_ctx_t *pCtx) XFile_Print(&file, "\n.%s.$(OBJ):\n", pCtx->bIsCPP ? "cpp" : "c"); XFile_Print(&file, "\t@test -d $(ODIR) || mkdir -p $(ODIR)\n"); - XFile_Print(&file, "\t$(%s) $(%s) %s -c -o $(ODIR)/$@ $< $(LIBS)\n\n", pCompiler, pCFlags, pFPICOption); + XFile_Print(&file, "\t$(%s) $(%s)%s -c -o $(ODIR)/$@ $< $(LIBS)\n\n", pCompiler, pCFlags, pFPICOption); XFile_Print(&file, "$(NAME):$(OBJS)\n"); if (bStatic) XFile_Print(&file, "\t$(AR) rcs -o $(ODIR)/$(NAME) $(OBJECTS)\n");