Solved: color quirks in Makefile

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
User avatar
DerellLicht1
Posts: 171
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Solved: color quirks in Makefile

Post by DerellLicht1 »

This is a quirk, more than really a bug, but I wanted to ask about it...
I've found that in Makefile files, RJTE seems to keep changing its mind about what colors to use for rendering...

The attached image shows some of these anomalies...
note that CFLAGS declaration is a different color than LiFLAGS and IFLAGS ...

and in the following rules, note that CFLAGS and LFLAGS are different colors than OBJS, BIN, LIBS ...
What is driving these color anomalies???
Makefile.color.quirks.jpg
Makefile.color.quirks.jpg (60.71 KiB) Viewed 140 times
Last edited by DerellLicht1 on 15 Jun 2025 01:09, edited 1 time in total.
User avatar
pjj
Posts: 2242
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: color quirks in Makefile

Post by pjj »

I believe it is simply due to keywords present/missing in the makefile.syx: CFLAGS is there, but not the other ones you enumerated. Perhaps you need to fork this file and add the ones that are necessary for you (and send your copy to Rickard :wink:).
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 171
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: color quirks in Makefile

Post by DerellLicht1 »

Interesting... hokay, I'll look into that...

Since most of those "keywords" in makefile, are unique to my usage, probably it's not useful for me to forward them to anyone else!!!

Later note:
Aye!! That was perfect...

There's still one minor quirk in Makefile; If I use backslash in a macro path:
$(TOOLS)\$(GNAME) $(OBJS) $(LFLAGS) -o $(BIN) $(LIBS)
then the $ gets escaped, and the GNAME macro is not recognized...
Fortunately, Gnu Make recognizes forward slash in that command, so I can use that instead, and get expected behavior...

Thank you *Once Again*, Master @pjj !! I'm glad you hang around on these forums...
User avatar
pjj
Posts: 2242
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Solved: color quirks in Makefile

Post by pjj »

Image
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply