## ## spreadspace stm8 utils ## ## ## Copyright (C) 2017 Christian Pointner ## ## This file is part of spreadspace stm8 utils. ## ## spreadspace stm8 utils is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## any later version. ## ## spreadspace stm8 utils is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with spreadspace stm8 utils. If not, see . ## all: download-spl update-stm8flash update-stm8gal doxygen := $(shell which doxygen) clean: clean-spl clean-stm8flash clean-stm8gal download-spl: stsw-stm8069.zip stsw-stm8069.zip: wget "http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stsw-stm8069.zip" -O "$@" unzip $@ cd STM8S_StdPeriph_Lib; patch -p1 < ../STM8_SPL_v2.2.0_SDCC.patch; $(doxygen) clean-spl: rm -rf STM8S_StdPeriph_Lib rm -f stsw-stm8069.zip .stm8flash.prepared: git clone https://github.com/vdudouyt/stm8flash.git touch $@ update-stm8flash: .stm8flash.prepared cd stm8flash; git pull; make clean-stm8flash: rm -rf stm8flash rm -f .stm8flash.prepared .stm8gal.prepared: git clone https://github.com/gicking/STM8gal.git touch $@ update-stm8gal: .stm8gal.prepared cd STM8gal; git pull; make clean-stm8gal: rm -rf STM8gal rm -f .stm8gal.prepared