-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
OS := $(shell uname) | ||
COMPILER := $(shell test "${OS}" = "Linux" -a -x "/bin/g++" && echo "_gcc") | ||
|
||
BUILD_Darwin = clang++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -arch arm64 -arch x86_64 | ||
BUILD_Linux_gcc = g++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -static-libgcc -static-libstdc++ -static | ||
BUILD_Linux = clang++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall | ||
BUILD_FreeBSD = clang++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -lelf -lkvm -lpthread -static | ||
BUILD_DragonFly = g++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -static-libgcc -static-libstdc++ -lkvm -lpthread -static | ||
BUILD_NetBSD = g++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -static-libgcc -static-libstdc++ -lkvm -lpthread -static | ||
BUILD_OpenBSD = clang++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -lkvm -lpthread -static | ||
BUILD_SunOS = g++ procenv.cpp process.cpp -o procenv -std=c++17 -Wall -static-libgcc -lkvm | ||
BUILD_Windows = g++ procenv.cpp process.cpp -o procenv.exe -std=c++17 -Wall -static-libgcc -static-libstdc++ -static -lntdll | ||
BUILD_Darwin = clang++ envps.cpp process.cpp -o envps -std=c++17 -Wall -arch arm64 -arch x86_64 | ||
BUILD_Linux_gcc = g++ envps.cpp process.cpp -o envps -std=c++17 -Wall -static-libgcc -static-libstdc++ -static | ||
BUILD_Linux = clang++ envps.cpp process.cpp -o envps -std=c++17 -Wall | ||
BUILD_FreeBSD = clang++ envps.cpp process.cpp -o envps -std=c++17 -Wall -lelf -lkvm -lpthread -static | ||
BUILD_DragonFly = g++ envps.cpp process.cpp -o envps -std=c++17 -Wall -static-libgcc -static-libstdc++ -lkvm -lpthread -static | ||
BUILD_NetBSD = g++ envps.cpp process.cpp -o envps -std=c++17 -Wall -static-libgcc -static-libstdc++ -lkvm -lpthread -static | ||
BUILD_OpenBSD = clang++ envps.cpp process.cpp -o envps -std=c++17 -Wall -lkvm -lpthread -static | ||
BUILD_SunOS = g++ envps.cpp process.cpp -o envps -std=c++17 -Wall -static-libgcc -lkvm | ||
BUILD_Windows = g++ envps.cpp process.cpp -o envps.exe -std=c++17 -Wall -static-libgcc -static-libstdc++ -static -lntdll | ||
|
||
BUILD = ${BUILD_${OS}${COMPILER}} | ||
|
||
procenv: procenv.cpp process.cpp process.hpp Makefile | ||
envps: envps.cpp process.cpp process.hpp Makefile | ||
ifeq (${BUILD},) | ||
@echo "Unsupported OS/compiler combination: ${OS}${COMPILER}" | ||
@exit 1 | ||
endif | ||
${BUILD} | ||
|
||
clean: | ||
rm -f procenv procenv.exe | ||
rm -f envps envps.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters