From 5f8af06d51c7ac97755f34bf3c433d1bbaee211f Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Mon, 19 Sep 2022 10:45:54 +0300 Subject: [PATCH] fix: Makefile now builds for linux on unknown OS --- Makefile | 7 ++----- README.md | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index d363505..3b5ffb1 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ uninstall: version: cmd /c "set /a $(version-build) + 1 > build.version" -else ifeq ($(os),Linux) +else ldflags += -lpthread @@ -86,7 +86,7 @@ clear: install: build echo Installing ++C compiler to your system... sudo cp $(bin)/*.so /usr/lib - sudo cp $(bin)/$(output)-linux /usr/bin/$(output) + sudo cp $(binary) /usr/bin/$(output) sudo chmod +777 /usr/bin/$(output) sudo chmod +777 $(patsubst $(bin)/%,/usr/lib/%,$(wildcard $(bin)/*.so)) uninstall: @@ -103,7 +103,4 @@ leak: build lint: echo ========================= Linting ========================== cppcheck $(src) --track-origins=yes --suppress=unusedFunction --suppress=missingInclude --enable=all - -else -$(error Unknown OS) endif diff --git a/README.md b/README.md index d38400f..11782d7 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,4 @@ Any help is entirely voluntary, yet very much appreciated. If you see any bugs, - Prerequisites: `gcc`, `make` (I use the GnuWin port) ### Mac OS X -Fuck you, get a normal OS - -(just kidding, I can't be bothered to add Mac support) +For now, there's no official support, but the build scripts should in theory work with any unix-like OS. You can try to use the linux instructions