mirror of
https://github.com/eddyem/STM8_samples.git
synced 2026-03-20 16:51:04 +03:00
add LEDS_BT variant for pseudostart (up to 7 channels)
This commit is contained in:
34
LEDS_BT/pseudostars_7groups/Makefile
Normal file
34
LEDS_BT/pseudostars_7groups/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
NAME=uart
|
||||
SDCC=sdcc
|
||||
|
||||
CCFLAGS=-DSTM8S103 -I../ -I/usr/share/sdcc/include -mstm8 --out-fmt-ihx
|
||||
LDFLAGS= -mstm8 --out-fmt-ihx -lstm8
|
||||
FLASHFLAGS=-cstlinkv2 -pstm8s103f2
|
||||
|
||||
SRC=$(wildcard *.c)
|
||||
|
||||
OBJ=$(SRC:%.c=%.rel)
|
||||
TRASH=$(OBJ) $(SRC:%.c=%.rst) $(SRC:%.c=%.asm) $(SRC:%.c=%.lst) $(SRC:%.c=%.cdb)
|
||||
TRASH+=$(SRC:%.c=%.sym) $(NAME).lk $(NAME).map
|
||||
INDEPENDENT_HEADERS=../stm8s.h ports_definition.h Makefile
|
||||
|
||||
all: $(NAME).ihx
|
||||
|
||||
#$(SRC) : %.c : %.h $(INDEPENDENT_HEADERS)
|
||||
# @touch $@
|
||||
#
|
||||
#%.h: ;
|
||||
|
||||
clean:
|
||||
rm -f $(TRASH)
|
||||
|
||||
load: $(NAME).ihx
|
||||
stm8flash $(FLASHFLAGS) -w $(NAME).ihx
|
||||
|
||||
%.rel: %.c
|
||||
$(SDCC) $(CCFLAGS) -c $<
|
||||
|
||||
$(NAME).ihx: $(OBJ)
|
||||
$(SDCC) $(LDFLAGS) $(OBJ) -o $(NAME).ihx
|
||||
|
||||
.PHONY: all
|
||||
Reference in New Issue
Block a user