aboutsummaryrefslogtreecommitdiff
path: root/projects/ekermit-test/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-20 22:46:18 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-20 22:46:18 -0400
commit5a0fb1ce24abe38ada705327868a5601b59e8ec4 (patch)
tree21355ad227847620d0c5454c5af600c6916fa378 /projects/ekermit-test/Makefile
parentd24c7c38def470aa0615212a5afd007f091b750a (diff)
E-Kermit, for file upload goodness
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