Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Copperhead ! (Registered 2024-05-08) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Cross Development using Makefile
2013-01-25 14:45
Burglar

Registered: Dec 2004
Posts: 1033
Cross Development using Makefile

Weekend didn't even start for most of you yet, but here it is ;)

Cross Development using Makefile

comments and improvements are of course very welcome.

enjoy and may your build times be short!

make -j16
 
... 37 posts hidden. Click here to view all posts....
 
2022-08-15 18:38
Bacchus

Registered: Jan 2002
Posts: 154
For people like me, with no formal computer science training, I am always very late to the party, picking up what's logical. Coded too long in a monitor, coded too long on the native platform, coded too long without realising the value of git.

I do sublime and Swoffas plugin for KickAssembler, and I use the make.bat that it supports. My general way of working is a "fix.asm" where I load files, patch them and then save them back.

So this:

.file [name="temp\raw.prg", allowOverlap=true, segments="themain,themainpatch"]


Do I need to rethink my structure? As I see the examples, they are still assuming that there is and -o output from the assembly phase and I simply don't have that.
2022-08-15 18:52
chatGPZ

Registered: Dec 2001
Posts: 11136
Just to say it once: Forget the advice about cygwin. These days please use msys2 - which is nicer in every aspect.
2022-08-15 19:22
Krill

Registered: Apr 2002
Posts: 2852
Quoting Bacchus
make.bat
I think batch files are out of scope of this thread. :)
2022-08-16 09:31
Danzig

Registered: Jun 2002
Posts: 429
Quote:
Just to say it once: Forget the advice about cygwin. These days please use msys2 - which is nicer in every aspect.


anyone tried that jizzle with WSL2 with, say, debian? should even work with starting WinVice on the desktop!?
2022-08-16 14:17
Stone

Registered: Oct 2006
Posts: 168
Quote: Just to say it once: Forget the advice about cygwin. These days please use msys2 - which is nicer in every aspect.

Indeed. And stay away from the packages you can find with chocolatey. Both 'make' and 'grep' are compiled without support for wildcards/glob patterns...
2022-08-16 15:02
Frantic

Registered: Mar 2003
Posts: 1628
Quote: Indeed. And stay away from the packages you can find with chocolatey. Both 'make' and 'grep' are compiled without support for wildcards/glob patterns...

I would never ever install something called "chocolatey", no matter what it was.
2022-08-16 15:41
Bacchus

Registered: Jan 2002
Posts: 154
@krill - of course. I am exploring moving away from bat files.

@groepaz - This is under Windows 11 and my shell has support for MAKE via the Embarcadero installation of Delphi I have. So MAKE work without any additional installation for me (I do have MSYS2 for building VICE as I presume you already know ;-)

The particular issue I had with segments in KickAssembler was solved. In the makefile define the address of where the patch is (so I can reuse that address for the calling address of the cruncher) and then the general build of the "import binary, patch and save a patched copy" is like this:

*=$0801

.segmentout [allowOverlap=true, segments="themain,themainpatch"]

.segment themain []

* = $0801

.import c64 "depacked/x.prg"

.segment themainpatch []

*=cmdLineVars.get("InsertCode").asNumber(16)
2022-08-16 19:33
hollowman

Registered: Dec 2001
Posts: 474
Quote: Quote:
Just to say it once: Forget the advice about cygwin. These days please use msys2 - which is nicer in every aspect.


anyone tried that jizzle with WSL2 with, say, debian? should even work with starting WinVice on the desktop!?


Yes, running Vice on the Windows desktop using WSL2 works fine for me so far. I use Windows 11 with WSL2 and Ubuntu 20 as Linux distribution.

And for development you can use Visual Studio Code with the remote WSL extension, so you have the VS Code UI running on the Windows desktop and the VS Code Server and your command line tools running under Linux in WSL2.
2022-08-16 21:05
chatGPZ

Registered: Dec 2001
Posts: 11136
Doesnt VS Code run in WSL2?
2022-08-16 21:29
Danzig

Registered: Jun 2002
Posts: 429
Quote: Doesnt VS Code run in WSL2?

No, worse, Electron app alias Browser :-D
Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Apollyon/ALD
Unlock/Padua/Albion
Fred/Channel 4
elkmoose
Guests online: 144
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.044 sec.