generated from spseol/STM8S-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (33 loc) · 933 Bytes
/
Makefile
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
# Switch Makefile
MKDIR = mkdir
ifeq ($(OS),Windows_NT)
uname_S := Windows
LN = cp
else
uname_S := $(shell uname -s)
LN = ln -sf
endif
CP = cp
menu::
@echo "# Vyber si toolchain!"
@echo "# Detaily v REAME a na adrese "
@echo "# https://chytrosti.marrek.cz/vyvoj-stm8-s-opensource-nastroji.html"
@echo
@echo "# Pokud chces debug a nevadi ti vetsi binarka:"
@echo \"make sdcc\" " ... nebo"
@echo \"make default\"
@echo
@echo "# Pokud chces male binarky a nepotrebujes debug:"
@echo \"make sdccrm\"
@echo
@echo "# Pokud chces male binarky i debug a mas 'SDCC-gas' zavolej:"
@echo \"make sdcc-gas\"
default: sdcc
sdcc:: spl
$(LN) .make/Makefile-sdcc Makefile || cp .make/Makefile-sdcc Makefile
sdccrm:: spl
$(LN) .make/Makefile-sdccrm Makefile || cp .make/Makefile-sdccrm Makefile
sdcc-gas:: spl
$(LN) .make/Makefile-sdcc-gas Makefile || cp .make/Makefile-sdcc-gas Makefile
spl::
bash .make/spl.sh