News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Poliander

Skeleton for sdcc makefile projects

Started by Poliander, 15:33, 12 October 14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Poliander

Just fiddling around with sdcc using makefiles on Linux, therefore I have created a small "hello world" example 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)
Schneider CPC 664 • X-MEM • Vortex F1-X Drive • CTM 644 • DMP 2160
Schneider CPC 6128 • Z-MEM • M4 Board • MultiPlay + Amiga Mouse • OSSC

arnoldemu

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: 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).

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Poliander

Uuuh, that's nice. Thank you for providing me these, I'll dig further into next weekend!
Schneider CPC 664 • X-MEM • Vortex F1-X Drive • CTM 644 • DMP 2160
Schneider CPC 6128 • Z-MEM • M4 Board • MultiPlay + Amiga Mouse • OSSC

jrodriguezv

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

Poliander

Thank you for your feedback/input. It was really interesting reading through your projects. I'm currently trying to learn a bit more assembly :-)
Schneider CPC 664 • X-MEM • Vortex F1-X Drive • CTM 644 • DMP 2160
Schneider CPC 6128 • Z-MEM • M4 Board • MultiPlay + Amiga Mouse • OSSC

Powered by SMFPacks Menu Editor Mod