Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
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: 924
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
 
... 22 posts hidden. Click here to view all posts....
 
2020-03-28 17:30
MagerValp

Registered: Dec 2001
Posts: 1031
Agreed, it's a huge time saver. ca65 has a --create-dep option that does the same thing.
2020-03-28 17:51
Oswald

Registered: Apr 2002
Posts: 4786
what hapens if demo.dep doesnt exist yet, or if I change the includes in the src, and make goes for the first time around ?
2020-03-28 18:07
Groepaz

Registered: Dec 2001
Posts: 10411
usually you have seperate rule that just generates the .dep file when it does not exist. and you trigger that rule manually when the includes change (or just always if its quick enough)
2020-03-28 18:30
soci

Registered: Sep 2003
Posts: 461
Nothing interesting happens. If a file is missing with a dummy rule it's a change and of course modifying an include line in one of the sources is a change. The resulting compilation creates an updated demo.dep file and all is well.

A separate target may be necessary if dependency generation is not done at the same time as the compilation. For example when it's done by a separate program and it's somehow slow.

Until now I too thought this should be done in a separate target like Groepaz said and so there were no dummy rules generated. After all in that workflow you generate them manually and therefore there won't be any missing files. And if there were it was the reason to run it ;)

But generating them always is fast enough for me.
2020-03-28 18:32
Groepaz

Registered: Dec 2001
Posts: 10411
seperate rule is just a convention from old GNU times i think, when it took quite a while :)
2020-03-30 08:27
Zirias

Registered: Jan 2014
Posts: 47
At least GNU make will re-read rules when one of the makefiles changes -- not sure what other flavors of make do.
2022-08-15 18:38
Bacchus

Registered: Jan 2002
Posts: 136
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
Groepaz

Registered: Dec 2001
Posts: 10411
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: 2400
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: 413
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!?
Previous - 1 | 2 | 3 | 4 - 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
chesser/Nigaz
Ax!s
Didi/Laxity
TLF/Sonic Uproar
Claus_2015
theK/ATL
Guests online: 52
Top Demos
1 Coma Light 13  (9.6)
2 Edge of Disgrace  (9.6)
3 Bromance  (9.6)
4 Uncensored  (9.6)
5 E2IRA  (9.6)
6 Memento Mori  (9.5)
7 Comaland 100%  (9.5)
8 Lunatico  (9.5)
9 The Shores of Reflec..  (9.5)
10 Incoherent Nightmare  (9.5)
Top onefile Demos
1 Copper Booze  (9.7)
2 Barry Boomer - Trapp..  (9.5)
3 Dawnfall V1.1  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Lovecats  (9.5)
6 Elite Code Mechanics  (9.5)
7 Rewind  (9.4)
8 Onef1ler 2  (9.4)
9 Tribute to Ben - Las..  (9.4)
10 No Mercy for the Tro..  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Eagle Soft Incorpora..  (9.3)
3 Maniacs of Noise  (9.3)
4 Oxyron  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (10)
3 Pal  (9.4)
4 Mermaid  (9.3)
5 Shine  (9.2)

Home - Disclaimer
Copyright © No Name 2001-2022
Page generated in: 0.048 sec.