3. Building - xander-haj/zelda3 GitHub Wiki
zelda3
folder
Make sure you are in the root of the Building on Mac/Linux
clang++ `sdl2-config --cflags` -O2 -ozelda3 *.c snes/*.c `sdl2-config --libs`
or
make -j$(nproc) # run on all core
make clean all # clear gen+obj and rebuild
CC=clang make # specify compiler
Building on Windows
MSYS2
type: make
Visual Studio
Open the zelda3.sln
file
Verify that you changed debug
to release
like in the picture below. Then in the Solution Explorer Window right click on zelda3 and click build
.
If you do not see the Solution Explorer Window then click View
at the top and enable it
you should now have a new folder called bin
. Then inside the x64-Release
folder you will find the .exe
TCC
create a folder called third party
Unzip TCC for win64 into third_party/tcc
Unzip SDL2 into third_party/SDL2-2.24.0
Start run_with_tcc.bat
. It will perform some basic error checks and then start the game.
You can move the zelda3
folder wherever you wish now.
to update to the latest commit launch git bash:
cd
into the zelda3
folder and type git pull
.
must rebuild after update