CPCWiki forum

General Category => Programming => Topic started by: Poliander on 15:33, 12 October 14

Title: Skeleton for sdcc makefile projects
Post by: Poliander on 15:33, 12 October 14
Just fiddling around with sdcc using makefiles on Linux, therefore I have created a small "hello world" example (https://github.com/poliander/skeleton-sdcc-cpc) which someone might find useful. I wonder whether there is a Linux CLI tool to create DSK images, that would be nice... (comments/improvements/ideas appreciated)
Title: Re: Skeleton for sdcc makefile projects
Post by: arnoldemu on 15:44, 12 October 14
Nice.

I have attached a makefile for sdcc lib and a makefile for an exe.

I hope people find these useful.

There is a rule for a cdt using 2cdt tool, a rule for sdk using cpcxfs, a rule for au (to play via audacity into cpc).
All of these tools can be downloaded from my website and built for linux.

The main dsk rule adds a header to a screen made for a binary, it then adds the files to the dsk.
The main cdt rule does a similar job.

To make this all work, I had to add different extensions.

I am sure there are better ways to make these rules, but perhaps my makefiles will also give ideas.

@Poliander (http://www.cpcwiki.eu/forum/index.php?action=profile;u=203): please feel free to use any of the rules I have in my makefile or use them as inspiration to make better ones. Feel free to use my tools to help (2cdt, fileattr, etc).

Title: Re: Skeleton for sdcc makefile projects
Post by: Poliander on 16:30, 13 October 14
Uuuh, that's nice. Thank you for providing me these, I'll dig further into next weekend!
Title: Re: Skeleton for sdcc makefile projects
Post by: jrodriguezv on 20:48, 13 October 14
Hi! You can also have a look at CPC dev toolchain (https://github.com/cpcitor/cpc-dev-tool-chain)

It works in windows. Here is a setup tutorial in Spanish http://www.youtube.com/watch?v=FvAg-xmWZHM
Title: Re: Skeleton for sdcc makefile projects
Post by: Poliander on 09:12, 19 October 14
Thank you for your feedback/input. It was really interesting reading through your projects. I'm currently trying to learn a bit more assembly :-)
Powered by SMFPacks Menu Editor Mod