blob: c970b879ccc96a7b69e62798cd67b505589d8c88 (
plain) (
blame)
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
31
32
33
|
include ../stm32f4/Makefile-raw.defs
ALTOS_SRC = \
ao_interrupt.c \
ao_panic.c \
ao_timer.c \
ao_led.c \
ao_task.c \
ao_stdio.c
CFLAGS = $(STM32F4_CFLAGS)
PROG=stm32f4-disco-$(VERSION)
ELF=$(PROG).elf
IHX=$(PROG).ihx
SRC=$(ALTOS_SRC) ao_disco.c
OBJ=$(SRC:.c=.o)
MAP=$(PROG).map
all: $(ELF) $(IHX)
$(ELF): Makefile $(OBJ)
$(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ) -Wl,-M=$(MAP) $(LIBS)
distclean: clean
clean:
rm -f *.o *.elf *.ihx
install:
uninstall:
|