blob: b4fab70526571bd0a876afe7daae1bc5d2903190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
TEST = ekermit-test
OBJS = ../libhal-test/printf.o
BOARD_OBJS += $(TOPLEVEL)/sdram-malloc.o
CFLAGS += -I$(EKERMIT_DIR)
LIBS += $(EKERMIT_DIR)/libekermit.a
all: $(TEST:=.elf)
%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$*.map
$(OBJCOPY) -O binary $*.elf $*.bin
$(SIZE) $*.elf
clean:
rm -f *.o
rm -f *.elf
rm -f *.bin
rm -f *.map
|