Makefiles: How To Use?

Discussion in 'Software' started by HarryPotter, Nov 21, 2026 at 7:34 PM.

  1. HarryPotter

    HarryPotter MajorGeek

    Hi! I have one very large 8-bit program on which I'm working, and it takes well over one minute to compile. :( This is because I'm using batch files and extra steps which shouldn't be necessary. I want to upgrade to makefiles. Where can I find the proper software and documentation? I mainly have a Win11/64 laptop and a regular Win10/64 computer. Thank you.
     
  2. Maxwell

    Maxwell Folgers

    A makefile is a data file that provides a list of file types and associated commands for use in the make command itself - a data-driven build. It is typically used in UNIX environments to build C-programs (and similar compile-time languages), but I expect that there will be Windows variants of this. I feel that this isn't an "upgrade" as such as the technology is some 50 years old. If you are using Java then an equivalent of make would be Maven and its data driven POM XML files. This too has moved on to builds using Git based environments and has a similar basis in YAML files for build and configuration instructions.

    Anyway, a first port of call would be to read the Wikipedia articles on the subject:
    Make (software) - Wikipedia

    Also:
    Apache Maven - Wikipedia
     
  3. HarryPotter

    HarryPotter MajorGeek

    I can and have been using batch files to do the build. Should I continue? I think one of the major reasons for the slowdown is that I'm adding object files to a temporary library file one at a time instead of all at once. The reason for using the temporary library file is so I don't have to supply every file on the command line for the linker. It also helps by excluding unused files. The compiler I'm using probably doesn't have wildcard support on its librarian. I'll have to try later on today.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds