Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile for unix systems #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pumpthekin
Copy link

PR description

This PR aims to add a Makefile recipe for UNIX-like systems to ease build of each
Assembly Crash Course source files.

It builds NES ROMs executable in a build directory and take carry of cleaning root and sub-directories from *.o object files.

It also ease new source file additions by using a pattern matching target and allow users to run for example: make 01_XAndY.nes to assemble examples/01_XAndY.s and wrapper.s source files in the build directory.

So any source file additions in the example directory can next be build using the same command pattern.

This update will requires GNU make program to be able to run the build.
It can be found in pretty almost UNIX systems packages (GNU/Linux distros, BSD-like, ...)


The second request is to add *.dbg files pattern to .gitignore file, those are created by FCEUX emulator to save some debugging sessions info such as breakpoints position and options.

Adds

  • Makefile: Add recipe

Updates

  • .gitignore

Removes

  • None

Those files are created by FCEUX to store breakpoints, ...
for the current debugging session.
- Pattern matching target to ease new source file additions.
- Use of a `build` directory to assemble NES ROMs in a single place.
- Specific target to clean all `*.o` objects files from root and
  sub-directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant