-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathglobal.mk
More file actions
100 lines (83 loc) · 2.3 KB
/
global.mk
File metadata and controls
100 lines (83 loc) · 2.3 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
GNUWIN32 ?=c:/gnuwin32/bin
NMPP =$(ROOT)
DEVKIT ?=$(ROOT)/deps/dev-kit-master
ARMTOOLCH ?=$(DEVKIT)/arm-rcm-linux-gnueabihf
NEURO ?=$(DEVKIT)/nmsdk
VSHELL32 ?=$(DEVKIT)/vshell32
EASYNMC ?=$(DEVKIT)/nmc-utils-0.1.1/libeasynmc-nmc
MC5103 ?=$(DEVKIT)/mc5103sdk
MC7601 ?=$(DEVKIT)/mc7601sdk
MB7707 ?=$(DEVKIT)/mb7707sdk
MC12101 ?=$(DEVKIT)/mc12101sdk
ifeq ($(OS),Windows_NT)
SHELL = cmd
export PATH:=$(GNUWIN32);\
$(realpath $(NEURO)/bin);\
$(realpath $(MC12101)/bin);\
$(realpath $(MC5103)/bin);\
$(realpath $(MB7707)/bin);\
$(realpath $(MC7601)/bin);\
$(realpath $(VSHELL32)/bin);\
$(realpath $(ARMTOOLCH)/bin);\
$(PATH);
CROSS_COMPILE=arm-rcm-linux-gnueabihf-
ARM_CC =arm-rcm-linux-gnueabihf-gcc.exe
ARM_AR =arm-rcm-linux-gnueabihf-ar.exe
ARM_LD =arm-rcm-linux-gnueabihf-ld.exe
# OS_FIND = $(call BACKSLASH,$(GNUWIN32)/find)
# OS_DIFF = $(call BACKSLASH,$(GNUWIN32)/diff)
# OS_SCP = $(call BACKSLASH,$(GNUWIN32)/pscp)
# OS_CAT = $(call BACKSLASH,$(GNUWIN32)/cat)
OS_FIND = gfind
OS_DIFF = diff
OS_SCP = pscp
OS_CAT = cat
define OSX
$(subst /,\,$(1))
endef
# OS_MV = rename
OS_RM = del /Q
RM = rm -f -r
OS_RD = rd /Q /S
# OS_CP = $(call BACKSLASH,$(GNUWIN32)/cp)
OS_CP = copy
CP = cp
OS_WHICH =$(windir)/system32/where
MB7707_MAC ?= 1A-2B-3C-4D-5E-6F
else
ARM_CC = arm-module-linux-gnueabi-gcc
define OS_PATH
$(1)
endef
OS_DIFF = diff
OS_SCP = scp
OS_RM = rm -f -r
RM = rm -f -r
OS_RD = rm -d -r
OS_FIND = find
OS_CAT = cat
OS_CP = cp
CP = cp
define OSX
$(subst \,/,$(1))
endef
OS_WHICH = which
OS_WGET = wget
OS_UNZIP = unzip
OS_TAR = tar xvzf
OS_TODIR = -C
PATH := $(NEURO)/bin:$(MC5103)/bin:$(MB7707)/bin:$(PATH)
LD_LIBRARY_PATH = $(MC5103)/bin:$(MB7707)/bin
MB7707_MAC = eth0
endif
#PLATFORMS = vs8 mc5103 emu6405 mb7707 mc12101 gcc mc5103 mc7601 gcc emu6405 mc12705-gcc-cfg mc12705-gcc-ld
PLATFORMS = emu6405 x86 mc12101_nmpu0-legacy mc12101_nmpu0-gcc-ld mc12101_nmpu0-gcc-cfg mc12101_nmpu1-legacy mc12101_nmpu1-gcc-ld mc12101_nmpu1-gcc-cfg
TARGET1=mc5103
TARGET2=x86
#mc12101_nmc1
define newline
endef
define BACKSLASH
$(subst /,\,$(1))
endef
TEMPLATE_DIR = $(ROOT)/app/templates