aboutsummaryrefslogtreecommitdiff
path: root/projects/ekermit-test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/ekermit-test/Makefile')
-rw-r--r--projects/ekermit-test/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/projects/ekermit-test/Makefile b/projects/ekermit-test/Makefile
new file mode 100644
index 0000000..b4fab70
--- /dev/null
+++ b/projects/ekermit-test/Makefile
@@ -0,0 +1,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