mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-24 03:11:29 +11:00
Fixed dead link + convenience additions
This commit is contained in:
parent
fb80627c94
commit
9fe10cb4d7
|
@ -14,7 +14,7 @@ A crate that helps you make GBA games
|
||||||
|
|
||||||
This crate requires a fair amount of special setup. All of the steps are
|
This crate requires a fair amount of special setup. All of the steps are
|
||||||
detailed for you [in the 0th chapter of the
|
detailed for you [in the 0th chapter of the
|
||||||
book](https://rust-console.github.io/gba/ch00/index.html) that goes with this
|
book](https://rust-console.github.io/gba/00-introduction/03-development-setup.html) that goes with this
|
||||||
crate.
|
crate.
|
||||||
|
|
||||||
If you've done the global setup once before and just want to get a new project
|
If you've done the global setup once before and just want to get a new project
|
||||||
|
|
5
init.sh
5
init.sh
|
@ -33,9 +33,12 @@ rm -rf $APP_NAME/src/main.rs
|
||||||
wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello_world.rs
|
wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello_world.rs
|
||||||
mv hello_world.rs $APP_NAME/src/main.rs
|
mv hello_world.rs $APP_NAME/src/main.rs
|
||||||
|
|
||||||
|
# precreate target directory for crt0.o file
|
||||||
|
mkdir $APP_NAME/target
|
||||||
|
|
||||||
# setup make file
|
# setup make file
|
||||||
echo -e "CRT_FILE=$(echo $CRT_LOCAL)
|
echo -e "CRT_FILE=$(echo $CRT_LOCAL)
|
||||||
CRT_OUTPUT=crt0.o
|
CRT_OUTPUT=target/crt0.o
|
||||||
PROJECT_NAME=$(echo $APP_NAME)
|
PROJECT_NAME=$(echo $APP_NAME)
|
||||||
TARGET=$(echo $TARGET)
|
TARGET=$(echo $TARGET)
|
||||||
THUMB_TARGET=$(echo $TARGET).json
|
THUMB_TARGET=$(echo $TARGET).json
|
||||||
|
|
Loading…
Reference in a new issue