summaryrefslogtreecommitdiff
path: root/src/stm32f4-disco/Makefile
blob: 2d912b226fe1d47bcd151990723008b7b82991db (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
include ../stm32f4/Makefile-raw.defs

ALTOS_SRC = \
	ao_interrupt.c \
	ao_panic.c \
	ao_timer.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: