158a7f8383
fix: don't use UNIX sh based ifs, instead opt for GNU Make.
...
This is more portable acorss machines
2025-09-15 12:04:41 +02:00
c32d1551c8
fix: regular xxd does not have -n, thus using some argument manipulation magic
...
On my main system I use `tinyxxd`, henceforth: "regular"
2025-09-15 12:04:41 +02:00
f20171c0d7
fix: using the linker for generating a .o file is a feature for only GNU ld.
...
Now utilising a process to generate a .c file using `xxd`, and compiling
those to object files.
2025-09-15 11:59:39 +02:00
3a7709c392
fix: use more accurate linker flags / calling.
2025-09-15 11:59:39 +02:00
a14ef55262
fix: testing compilation does not correctly filter out main.o
2025-09-15 11:14:41 +02:00
d340bbe40b
fix: fminf and other <math.h> from libm not found.
...
The `-lm` linker flag was applied preceding the libraries, but it
should've been succeding.
2025-09-15 11:14:41 +02:00
348c4e484c
fix: clean-libs can fail when it shouldn't
2025-09-13 21:44:46 +02:00
1140bd97bf
fix: linking library glfw, whilst the library compilation produces libglfw3.
...
This slight discrepancy is a tad annoying, since it doesn't work
backwards so it uses my system's version. But we'll figure something for
that out later... probably.
2025-09-13 21:32:33 +02:00
997b15c640
fix: obj/res/ path did not create a directory, so likely failed to place anything there.
2025-09-13 21:17:07 +02:00
f481af7e78
fix: incorrect gl.c path
2025-09-13 21:16:33 +02:00
75ebff9071
remove pointer arithmatic warnings, since they are just useful
2025-09-13 21:11:38 +02:00
c2e1b67b4c
seperate out library compilation from general compilation
...
This can help with a more nuanced compilation. (eg. use system libraries
rather than compile our own)
Furthermore, it decreases the needed compilation time, since we needn't
recompile the whole thing when having cleaned out our local sources.
2025-09-13 20:25:38 +02:00
667814fb72
rework makefile to put extera emphasis on us no longer performing cross-platform compilation
...
Furthermore, we removed a bunch of behaviour that wasn't needed, and
simplified the bunch.
2025-09-13 20:25:38 +02:00
23fda298e6
fix: makefile had some duplicate configurations
2025-09-11 23:28:58 +02:00
03c76b0be6
rename makefile to Makefile, to reflect how everyone seems to name their makefile.
...
it just makes sense, and I might as well do it like this to prevent
confusing people.
2025-09-11 23:28:58 +02:00