SourceForge has been redesigned. Learn more.
Close

[6582b7]: / Makefile  Maximize  Restore  History

Download this file

36 lines (30 with data), 1.0 kB

 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
CC=sdcc
CFLAGS=-c -mstm8 -DSTM8S105 -I STM8S_StdPeriph_Driver/inc --debug
LDFLAGS=-mstm8 stm8.lib stm8s_minilib.lib -L STM8S_StdPeriph_Driver/src
SOURCES=main.c init.c leds.c rx_ringbuffer.c statistics.c eeprom.c vs1053.c uid.c cmd.c
OBJECTS=$(SOURCES:.c=.o)
OBJECTS_LINK=$(SOURCES:.c=.rel)
EXECUTABLE=stm8_oggstreamer.ihx
EXECUTABLE_HEX=stm8_oggstreamer.hex
PATCH=gen_patch/vsdsp_patch.hex
HEX_N_PATCH=stm8_oggstreamer_patched.hex
BIN_N_PATCH=stm8_oggstreamer_patched.bin
VERSION_INFO=version.txt
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS_LINK) -o $@
packihx $(EXECUTABLE) > $(EXECUTABLE_HEX)
srec_cat -disable_sequence_warnings $(EXECUTABLE_HEX) -intel $(PATCH) -intel $(VERSION_INFO) -binary -offset 0xFFE0 -o $(HEX_N_PATCH) -intel
srec_cat -disable_sequence_warnings $(HEX_N_PATCH) -intel -offset -32768 -o $(BIN_N_PATCH) -binary
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm *.rst
rm *.rel
rm *.lst
rm *.ihx
rm *.sym
rm *.asm
rm *.lk
rm *.map
rm $(EXECUTABLE)