Blame view

emetteur/makefile 571 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
  TARGET=emetteur
  
  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
  
  CFLAGS  = -std=gnu99 -g -O2 -Wall
  CFLAGS += -mlittle-endian -mthumb -mthumb-interwork -mcpu=cortex-m0
  CFLAGS += -fsingle-precision-constant -Wdouble-promotion
  
  SRCS =  emetteur.cpp
  
  .PHONY: $(TARGET)
  
  $(TARGET): $(TARGET).elf
  
  $(TARGET).elf: $(SRCS)
  	$(CC) --specs=nosys.specs $(INCLUDE) $(CFLAGS) $^ -o $@
  	$(CP) -O binary $(TARGET).elf $(TARGET).bin
  
  clean:
  	rm -f *.o $(TARGET).elf $(TARGET).bin