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

  Switch to side-by-side view

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