generated from spseol/STM8S-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 844 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
# 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
@echo "# Pokud chceš debug a nevadí ti větší binárka, zavolej:"
@echo \"make sdcc\" ... nebo
@echo \"make default\"
@echo
@echo "# Pokud chceš malé binárky a nepotřebuješ debug zavolej:"
@echo \"make sdccrm\"
@echo
@echo "# Pokud chceš malé binárky i debug a máš '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