Page 1 of 1

Solved: color quirks in Makefile

Posted: 13 Jun 2025 22:14
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 141 times

Re: color quirks in Makefile

Posted: 14 Jun 2025 10:03
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:).

Re: color quirks in Makefile

Posted: 15 Jun 2025 01:01
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...

Re: Solved: color quirks in Makefile

Posted: 15 Jun 2025 10:34
by pjj
Image