[8ad5a4]: STM8S_StdPeriph_Driver / src / Makefile Maximize Restore History

Download this file

Makefile    29 lines (24 with data), 500 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
27
28
CC=sdcc
AR=sdar
CFLAGS=-c -mstm8 -DSTM8S105 -I ../inc
LDFLAGS=-rc
#SOURCES=stm8s_flash.c stm8s_uart2.c stm8s_tim4.c stm8s_clk.c stm8s_itc.c
SOURCES=stm8s_minilib.c
OBJECTS=$(SOURCES:.c=.o)
OBJECTS_LINK=$(SOURCES:.c=.rel)
EXECUTABLE=stm8s_minilib.lib
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(AR) $(LDFLAGS) $(EXECUTABLE) $(OBJECTS_LINK)
.c.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm *.rst
rm *.rel
rm *.lst
rm *.ihx
rm *.sym
rm *.asm
rm *.lk
rm *.map
rm $(EXECUTABLE)