Changeset 214 for rtos_arduino
- Timestamp:
- Apr 2, 2016, 3:00:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/asp_1.9.2/target/arduino_m0_gcc/Makefile.target
r185 r214 20 20 21 21 # 22 # Arduinoã®éçºç°å¢ã®ãã¹(Windows表è¨)22 # ç°å¢ã®å¤å® 23 23 # 24 ARDUINO_BASE_DIR_WIN = C:\Program Files (x86)\Arduino 24 ifneq (,$(findstring /cygdrive/,$(PATH))) 25 UNAME_TARGET := Cygwin 26 ARDUINO_BASE_DIR = C:\Program Files (x86)\Arduino 27 else 28 ifneq (,$(findstring Windows,$(PATH))) 29 UNAME_TARGET := Windows 30 ARDUINO_BASE_DIR = C:\Program Files (x86)\Arduino 31 else 32 UNAME_TARGET := MacOS 33 ARDUINO_BASE_DIR = /Applications/Arduino.app/Contents/Java 34 endif 35 endif 25 36 26 37 # … … 32 43 # ã©ã¤ãã©ãªã使ç¨ãã 33 44 # 34 ARDUINO_LIB_DIR = $(ARDUINO_BASE_DIR _WIN)45 ARDUINO_LIB_DIR = $(ARDUINO_BASE_DIR) 35 46 endif 36 47 … … 128 139 include $(SRCDIR)/arch/$(PRC)_$(TOOL)/common/Makefile.core 129 140 130 131 #132 # ç°å¢ã®å¤å®133 #134 ifneq (,$(findstring /cygdrive/,$(PATH)))135 UNAME_TARGET := Cygwin136 else137 ifneq (,$(findstring Windows,$(PATH)))138 UNAME_TARGET := Windows139 else140 UNAME_TARGET := Unix141 endif142 endif143 144 145 141 # 146 142 # ãã©ãã·ã¥ã¸ã®æ¸ã込㿠147 143 # 148 OPENOCD_PATH = $(ARDUINO_BASE_DIR_WIN)\hardware\tools\OpenOCD-0.9.0-arduino\bin\openocd.exe 149 OPENOCD_SCRIPT_PATH = $(ARDUINO_BASE_DIR_WIN)\hardware\tools\OpenOCD-0.9.0-arduino\share\openocd\scripts 150 OPENOCD_SCRIPT = $(ARDUINO_BASE_DIR_WIN)\hardware\arduino\samd\variants\arduino_zero\openocd_scripts\arduino_zero.cfg 144 ifeq ($(UNAME_TARGET), Cygwin) 145 OPENOCD_PATH = $(ARDUINO_BASE_DIR)\hardware\tools\OpenOCD-0.9.0-arduino\bin\openocd.exe 146 OPENOCD_SCRIPT_PATH = $(ARDUINO_BASE_DIR)\hardware\tools\OpenOCD-0.9.0-arduino\share\openocd\scripts 147 OPENOCD_SCRIPT = $(ARDUINO_BASE_DIR)\hardware\arduino\samd\variants\arduino_zero\openocd_scripts\arduino_zero.cfg 148 endif 149 ifeq ($(UNAME_TARGET), MacOS) 150 OPENOCD_PATH = $(ARDUINO_BASE_DIR)/hardware/tools/OpenOCD-0.9.0-arduino/bin/openocd 151 OPENOCD_SCRIPT_PATH = $(ARDUINO_BASE_DIR)/hardware/tools/OpenOCD-0.9.0-arduino/share/openocd/scripts 152 OPENOCD_SCRIPT = $(ARDUINO_BASE_DIR)/hardware/arduino/samd/variants/arduino_zero/openocd_scripts/arduino_zero.cfg 153 endif 151 154 152 155 ifeq ($(UNAME_TARGET), Cygwin) 153 156 GDB = arm-gdb_m0.exe 154 157 else 155 GDB = $(ARDUINO_BASE_DIR_WIN)\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin\arm-none-eabi-gdb 158 ifeq ($(UNAME_TARGET), MacOS) 159 GDB = $(ARDUINO_BASE_DIR)/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-gdb 160 endif 156 161 endif 157 162 … … 167 172 cygstart "$(OPENOCD_PATH)" '-s "$(OPENOCD_SCRIPT_PATH)"' '-f "$(OPENOCD_SCRIPT)"' 168 173 else 174 ifeq ($(UNAME_TARGET), Windows) 169 175 start /MIN "" "$(OPENOCD_PATH)" -s "$(OPENOCD_SCRIPT_PATH)" -f "$(OPENOCD_SCRIPT)" 176 else 177 ifeq ($(UNAME_TARGET), MacOS) 178 $(OPENOCD_PATH) -s "$(OPENOCD_SCRIPT_PATH)" -f "$(OPENOCD_SCRIPT)" 179 endif 180 endif 170 181 endif 171 182
Note:
See TracChangeset
for help on using the changeset viewer.