diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 00:44:10 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 00:44:10 +0200 |
commit | fdcf4f08a5eb2e0b8d9b23db5fdc6dddce668435 (patch) | |
tree | 01255cd400efeb35e73557761549057d0c8fadb7 /include.mk | |
parent | updated 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.mk | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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 "****************************************************" |