summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-08-26 00:44:10 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-08-26 00:44:10 +0200
commitfdcf4f08a5eb2e0b8d9b23db5fdc6dddce668435 (patch)
tree01255cd400efeb35e73557761549057d0c8fadb7 /include.mk
parentupdated StdPeriph Lib Patch: https://github.com/tenbaht/sduino/wiki/spl (diff)
rename external lib stdperiph to spl
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk26
1 files changed, 13 insertions, 13 deletions
diff --git a/include.mk b/include.mk
index f782fc9..3c2509b 100644
--- a/include.mk
+++ b/include.mk
@@ -33,7 +33,7 @@ OBJ_LIB := $(LIBS:%=lib-%.rel)
SRC_LIB := $(LIBS:%=$(LIB_DIR)/%.c)
DEP_LIB := $(LIBS:%=lib-%.d)
-.PHONY: prepare clean clean-external distclean clean-stdperiph program erase flash reset run
+.PHONY: prepare clean clean-external distclean clean-spl program erase flash reset run
ELFFILE := $(NAME).elf
HEXFILE := $(NAME).hex
@@ -44,10 +44,10 @@ all: prepare $(HEXFILE)
## external Libs
LDFLAGS += -L./
-ifdef STDPERIPH_PATH
-CFLAGS += -D$(STDPERIPH_MCU)
+ifdef SPL_PATH
+CFLAGS += -D$(SPL_MCU)
CFLAGS += -I./
-CFLAGS += -I$(STDPERIPH_PATH)/Libraries/STM8S_StdPeriph_Driver/inc
+CFLAGS += -I$(SPL_PATH)/Libraries/STM8S_StdPeriph_Driver/inc
endif
prepare: $(EXTERNAL_LIBS:%=build-%)
@@ -55,25 +55,25 @@ clean-external: $(EXTERNAL_LIBS:%=clean-%)
export
-build-stdperiph: libstdperiph.a
+build-spl: libspl.a
-libstdperiph.a: Makefile
+libspl.a: Makefile
@echo ""
@echo "****************************************************"
- @echo "* building external STM8S StdPeriph lib ($(STDPERIPH_PATH))"
+ @echo "* building external STM8S StdPeriph lib ($(SPL_PATH))"
@echo ""
- make -f $(SPREADSTM8_PATH)/stdperiph.mk libstdperiph.a
- make -f $(SPREADSTM8_PATH)/stdperiph.mk clean
+ make -f $(SPREADSTM8_PATH)/spl.mk libspl.a
+ make -f $(SPREADSTM8_PATH)/spl.mk clean
@echo ""
@echo "****************************************************"
-clean-stdperiph:
+clean-spl:
@echo ""
@echo "****************************************************"
- @echo "cleaning external STM8S StdPeriph lib ($(STDPERIPH_PATH))"
+ @echo "cleaning external STM8S StdPeriph lib ($(SPL_PATH))"
@echo ""
- make -f $(SPREADSTM8_PATH)/stdperiph.mk clean
- rm -f libstdperiph.a
+ make -f $(SPREADSTM8_PATH)/spl.mk clean
+ rm -f libspl.a
@echo ""
@echo "****************************************************"