mirror of
https://github.com/synthetos/g2.git
synced 2026-10-14 10:52:33 +08:00
I was also able to compile on OS X (with yagarto-4.7.2), and debug the generated TinyG2.elf file using Atmel Studio 6.1. I added the Reference directory with a Makefile to gather reference code. This currently only contains newlib-1.20, and is used for symbolic debugging only. To download and prepare all of the reference code, just: cd Reference make
22 lines
509 B
Makefile
22 lines
509 B
Makefile
## In order to download and decompress the reference coded *useful* for symbolic debugging,
|
|
## Just call "make" from this directory.
|
|
|
|
# Program paths
|
|
WGET=wget
|
|
TAR=tar xzvf
|
|
TOUCH=touch
|
|
|
|
# Newlib locations
|
|
NEWLIB_VERSION=1.20.0
|
|
NEWLIB_URL=ftp://sources.redhat.com/pub/newlib/newlib-$(NEWLIB_VERSION).tar.gz
|
|
NEWLIB_DIRECTORY=./newlib-$(NEWLIB_VERSION)/
|
|
|
|
|
|
# Rules
|
|
all: $(NEWLIB_DIRECTORY)
|
|
|
|
$(NEWLIB_DIRECTORY): | newlib-$(NEWLIB_VERSION).tar.gz
|
|
$(TAR) $|
|
|
|
|
newlib-$(NEWLIB_VERSION).tar.gz:
|
|
$(WGET) $(NEWLIB_URL)
|