[8ad5a4]: Makefile  Maximize  Restore  History

Download this file

27 lines (22 with data), 555 Bytes

 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
CC=sdcc
CFLAGS=-c -mstm8 -DSTM8S105 -I STM8S_StdPeriph_Driver/inc
LDFLAGS=-mstm8 stm8.lib stm8s_minilib.lib -L STM8S_StdPeriph_Driver/src
SOURCES=main.c cmd.c eeprom.c init.c leds.c rx_ringbuffer.c statistics.c uid.c vs1053.c
OBJECTS=$(SOURCES:.c=.o)
OBJECTS_LINK=$(SOURCES:.c=.rel)
EXECUTABLE=stm8_oggstreamer.ihx
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS_LINK) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm *.rst
rm *.rel
rm *.lst
rm *.ihx
rm *.sym
rm *.asm
rm *.lk
rm *.map
rm $(EXECUTABLE)