From 37d9ebc0a60ed79372dfa4e425df6229f96dbda3 Mon Sep 17 00:00:00 2001 From: Sun Dro Date: Tue, 25 Jul 2023 03:25:02 +0400 Subject: [PATCH] Added pthread --- Makefile | 2 +- README.md | 4 +++- smake.json | 1 + src/info.h | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fa25752..5a95c87 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ CFLAGS = -g -O2 -Wall -I./src -I./xutils/build LD_LIBS = ./xutils/build/libxutils.a -LIBS = +LIBS = -lpthread NAME = smake ODIR = ./obj OBJ = o diff --git a/README.md b/README.md index 3fcbe88..cf8601f 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,8 @@ smake -j \ -o ./obj \ -b /usr/bin \ -e './xutils' \ - -l './xutils/build/libxutils.a' \ + -l '-lpthread' \ + -L './xutils/build/libxutils.a' \ -f '-g -O2 -Wall -I./src -I./xutils/build' \ ``` @@ -68,6 +69,7 @@ Config file generated and used by this project. "name": "smake", "flags": "-g -O2 -Wall -I./src -I./xutils/build", "ldLibs": "./xutils/build/libxutils.a", + "libs": "-lpthread", "outputDir": "./obj", "overwrite": true, "cxx": false, diff --git a/smake.json b/smake.json index 206d9ef..f57e1c3 100644 --- a/smake.json +++ b/smake.json @@ -8,6 +8,7 @@ "overwrite": true, "outputDir": "./obj", "flags": "-g -O2 -Wall -I./src -I./xutils/build", + "libs": "-lpthread", "ldLibs": "./xutils/build/libxutils.a", "name": "smake", "excludes": [ diff --git a/src/info.h b/src/info.h index 3197114..e29106a 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 10 +#define SMAKE_BUILD_NUMBER 11 #ifndef _SMAKE_VERSION_H_ #define _SMAKE_VERSION_H_