sdk: created `sdk` directory with `common.mk` and `setvars.bat` files

This commit is contained in:
Ivan Tatarinov 2021-04-07 11:44:00 +03:00
parent c28385ef18
commit 63c1bbb651
2 changed files with 12 additions and 0 deletions

7
sdk/common.mk Normal file
View File

@ -0,0 +1,7 @@
# Common declarations for Makefiles.
#
# Supported environments:
# * GNU/Linux
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
ZXUNOSDK := $(patsubst %/,%,$(abspath $(dir $(lastword $(MAKEFILE_LIST)))))

5
sdk/setvars.bat Normal file
View File

@ -0,0 +1,5 @@
@echo off
if not x%ZXUNOSDK% == x exit /b
set ZXUNOSDK=%~dp0
set ZXUNOSDK=%ZXUNOSDK:~0,-1%
set PATH=%ZXUNOSDK%;%PATH%