pweingar / FoenixMCP

A portable kernel for the Foenix series of computers.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Improve main Makefile #33

Closed vinz6751 closed 2 years ago

vinz6751 commented 2 years ago

Improve makefile so it automatically detects Windows or other and use the appropriate VBCC config. I have a Windows laptop and linux desktops so it's a pain for me to change constantly;)

Simplify building of subdirectories. Don't display "Entering/leaving directory x" while making. The source file path tells the story. Create different targets for S68 and bin images. Add small help target.

This makefile comes from my "splitout CLI" branch in progress but I thought it could have some benefit for the mainstream.

pweingar commented 2 years ago

Have a look at the makefile in the a2560k branch. I'm trying to move it to something that can more easily create either a RAM or Flash version of the kernel, targeted for a specific machine, and built on either Windows or Linux. I'm also wanting to get something in place to update build numbers more easily (in that branch, I've added a Python script to update a version file, but I'm not super-happy with that).

vinz6751 commented 2 years ago

I'm abandoning this PR. I kind of merged these changes with those you did in the a2560k branch in my repo so if anything I may make a PR for the a2560k branch instead.