KelvinShadewing / brux-gdk

Free runtime and development kit using SDL and Squirrel
GNU Affero General Public License v3.0
39 stars 20 forks source link

rte/Makefile: Less hardcoding + proper rules #45

Closed lanodan closed 1 year ago

lanodan commented 1 year ago
KelvinShadewing commented 1 year ago

I'm still not very versed with makefiles and only threw together what worked from a starter tutorial. Would you be willing to explain these changes?

lanodan commented 1 year ago

I'm still not very versed with makefiles and only threw together what worked from a starter tutorial. Would you be willing to explain these changes?

I partially did in the commit messages, feel free to ask questions about each part.

Errors I didn't note in it were:

KelvinShadewing commented 1 year ago

Oh, I see. I was mainly wondering at the removal of CFLAGS. Does using CXXFLAGS instead have some sort of effect?

lanodan commented 1 year ago

[2023-01-14 14:53:59-0800] Kelvin Shadewing:

Oh, I see. I was mainly wondering at the removal of CFLAGS. Does using CXXFLAGS instead have some sort of effect?

Well, CXXFLAGS is for C++, CFLAGS is for C. And in some cases the difference matters as there is C specific flags and C++ specific flags.

tulpenkiste commented 1 year ago

Given PR #50/#48 (specifically commit 5500b25), this PR probably won't work anymore (due to the removal of rte/Makefile).