-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile modifications to allow build on FreeBSD
- Loading branch information
Showing
6 changed files
with
58 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Build **gendev** for FreeBSD | ||
|
||
## Install Dependencies | ||
|
||
*Note: This guide is tested for FreeBSD 11.1-RELEASE* | ||
|
||
From the root shell, run the following commands: | ||
|
||
pkg install git gmake texinfo gcc openjdk-jre-7.151.01,1 wget | ||
|
||
Type 'y' and hit enter to proceed with installing the packages. | ||
|
||
## Build the toolchain | ||
|
||
Next, clone the repository and build the toolchain. [This may take some time to complete] | ||
|
||
git clone https://github.com/edenist/gendev.git | ||
cd gendev | ||
MAKE=gmake gmake | ||
|
||
The built toolchain and SGDK can now be installed. | ||
|
||
## Install Gendev | ||
|
||
Gendev is installed to $GENDEV [/opt/gendev] by default. While generally not 100% in line with FreeBSD's hier policy, it doesn't cause any interference so I would recommend using this to maintain compatability. | ||
Make sure that this directory is writable by the user. | ||
|
||
Now install to $GENDEV | ||
|
||
gmake install | ||
|
||
## Build some sample code [or your project!] | ||
|
||
You can test your new installation by building some sample code. This is also useful as a project template. | ||
|
||
cd ~/ (or some other directory) | ||
cp -r gendev/sgdk/SGDK/sample/cube_flat ./ | ||
cd cube_flat | ||
gmake -f $GENDEV/sgdk/mkfiles/makefile.gen clean all | ||
|
||
If everything builds correctly, you should end up with a file out/rom.bin with a size of 131072 bytes. You can run this file in an emulator of choice to confirm your builds are correct. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.