Commit Graph

19 Commits

Author SHA1 Message Date
Quinn
0dacc79cac fix: windows compilation
windows needed some special things when it came to including packages.
2025-06-02 12:41:00 +02:00
Quinn
538f20f733 remove references of rust in README.md 2025-05-01 16:48:47 +02:00
Quinn
401854002f remove rust/cargo from compilation
it has become clear that incorperating rust in this project was a
mistake, since I don't understand it well enough for it to be useful,
and at this rate it'd be faster to use GLFW in C than in rust.
2025-05-01 16:48:45 +02:00
Quinn
f61a72c680 include glfw libraries in the makefile 2025-05-01 16:48:41 +02:00
Quinn
0c74252a2f use NDEBUG instead of DEBUG as preprocessor. 2025-05-01 16:48:41 +02:00
Quinn
95f6d9b9d9 fix: makefile unable to convert the src/%.c paths into obj/$arch/$prof/%.o paths
had to include the src/ path in the shell finding, due to it otherwise
prefixing with ./src (it was aparrently also including files from
target/)
2025-05-01 16:48:40 +02:00
Quinn
7fe877fcbf move dir definitions before source definitions 2025-05-01 16:48:39 +02:00
Quinn
33ffa6d89e rework makefile logging to be more readable
added the log categories explicitly, removing the need for specifying
the log colour with each log
2025-05-01 16:48:38 +02:00
Quinn
64691550bd use a more dynamic makefile
- remove CLANG env, as it might be confused for the compiler. And it
doesn't fit the build system that well anyway. (as we're compiling based
on file extension already)
- locate source files using find, rather than a bunch of wildcards.
- rename TARGET to BIN and store DIR_BIN and DIR_OBJ for the output
directories
- use pattern matchin for C object file creation, rather than specifying
all the sources manually
- remove directory target as directory creation is handled by the
recipe's themselves now.
2025-05-01 16:48:38 +02:00
Quinn
c363fb6481 use bear whenever available, rather than only when debugging 2025-05-01 16:48:37 +02:00
Quinn
85bb26a08c use cargo instead of rustc 2025-05-01 16:48:35 +02:00
Quinn
961b8796ee use printf instead of echo due to some minor issues 2025-05-01 16:48:34 +02:00
Quinn
ec06481a36 write todo comments 2025-05-01 16:48:33 +02:00
Quinn
4c0f0a5aa9 introduce target flags for linking step 2025-05-01 16:48:31 +02:00
Quinn
2754fcbe3f warnings as errors 2025-05-01 16:48:30 +02:00
Quinn
c913e62fcc seperate rust flags out of the rust compilation command
for consistency and able to specify a target now, which is still
relevant for linking, despite not using the standard library
2025-05-01 16:48:30 +02:00
Quinn
801ed6ba76 always compile as static library 2025-05-01 16:48:29 +02:00
Quinn
07f4e5fe48 remove unused version 2025-05-01 16:48:28 +02:00
Quinn
7a64aefcac setup project files
Added (most) of the project files to the working tree.
Some work still needs to be done to make the rust/C communication better
before we can fully move on to starting to write the actual applicaiton.
2025-05-01 16:48:18 +02:00