forked from containerd/containerd
-
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.
Breaking Makefile into platform specific files
Fixed containerd#1270 Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
- Loading branch information
1 parent
89da512
commit 1c98958
Showing
7 changed files
with
54 additions
and
22 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Detect the OS, and return installos value same as GOOS | ||
target_os = | ||
ifeq ($(OS),Windows_NT) | ||
target_os = windows | ||
else | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
target_os = linux | ||
endif | ||
ifeq ($(UNAME_S),Darwin) | ||
target_os = darwin | ||
endif | ||
ifeq ($(UNAME_S),FreeBSD) | ||
target_os = freebsd | ||
endif | ||
ifeq ($(UNAME_S),SunOS) | ||
target_os = solaris | ||
endif | ||
endif |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#darwin specific settings | ||
COMMANDS += containerd-shim | ||
|
||
# supports go test -race | ||
TESTFLAGS_RACE= -race |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#freebsd specific settings | ||
COMMANDS += containerd-shim | ||
|
||
# supports go test -race | ||
TESTFLAGS_RACE= -race |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#linux specific settings | ||
COMMANDS += containerd-shim | ||
|
||
# supports go test -race | ||
TESTFLAGS_RACE= -race |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#solaris specific settings | ||
|
||
# on SunOS default to gnu utilities for things like grep, sed, etc. | ||
export PATH := /usr/gnu/bin:$(PATH) | ||
|
||
COMMANDS += containerd-shim |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#Windows specific settings. | ||
WHALE = "+" | ||
ONI = "-" | ||
FIX_PATH = $(subst /,\,$1) | ||
|
||
BINARY_SUFFIX=".exe" | ||
|
||
# supports go test -race | ||
TESTFLAGS_RACE= -race |