-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.inc
31 lines (30 loc) · 893 Bytes
/
Makefile.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ifndef GIT_HOME
$(error Variable GIT_HOME is not set)
endif
ifndef CARGO_HOME
$(error Variable CARGO_HOME is not set)
endif
ifeq ($(OS),Windows_NT)
RUSTC = $(subst \,/,$(CARGO_HOME))/bin/rustc.exe
TARGET_SUFFIX = .exe
TARGET_TRIPLE = $(shell arch)-pc-windows-msvc
PSEP = ;
CP = $(subst \,/,$(GIT_HOME))/usr/bin/cp.exe
ECHO = $(subst \,/,$(GIT_HOME))/usr/bin/echo.exe
## We grab Mingw version instead of C:\Windows\System32\find.exe
FIND = $(subst \,/,$(GIT_HOME))/usr/bin/find.exe
MKDIR = $(subst \,/,$(GIT_HOME))/usr/bin/mkdir.exe
RM = $(subst \,/,$(GIT_HOME))/usr/bin/rm.exe
TOUCH = $(subst \,/,$(GIT_HOME))/usr/bin/touch.exe
else
RUSTC = rustc
TARGET_SUFFIX =
TARGET_TRIPLE = $(shell arch)-unknown-linux-gnu
PSEP = :
CP = cp
ECHO = echo
FIND = find
MKDIR = mkdir
RM = rm
TOUCH = touch
endif