Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /STM8S_StdPeriph_Driver/src/Makefile [000000] .. [8ad5a4] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/STM8S_StdPeriph_Driver/src/Makefile
@@ -0,0 +1,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)