Blame view

recepteur/makefile 636 Bytes
7e1ad503   rcavalie   fichiers départ +...
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
  TARGET=recepteur
  
  CC=arm-none-eabi-gcc
  LD=arm-none-eabi-gcc
  AR=arm-none-eabi-ar
  AS=arm-none-eabi-as
  CP=arm-none-eabi-objcopy
  OD=arm-none-eabi-objdump
  SE=arm-none-eabi-size
  SF=st-flash
  
  CFLAGS  = -std=gnu99 -g -O2 -Wall
  CFLAGS += -mlittle-endian -mthumb -mthumb-interwork -mcpu=cortex-m0
  CFLAGS += -fsingle-precision-constant -Wdouble-promotion
  
  SRCS =  recepteur.c
  
  .PHONY: $(TARGET)
  
  $(TARGET): $(TARGET).elf
  
  $(TARGET).elf: $(SRCS)
          $(CC) $(INCLUDE) $(CFLAGS) $^ -o $@
          $(CP) -O binary $(TARGET).elf $(TARGET).bin
  
  clean:
          rm -f *.o $(TARGET).elf $(TARGET).bin
  
  flash:
          $(SF) write $(TARGET).bin 0x8000000