Skip to content

Further project structure #9

Answered by jonjondev
louishamelers asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @louishamelers!

Thanks for the question because we've had a similar questions on header placement a few times now. Forgive me because I'm going to provide a long-winded explanation for clarity.

If you take a look at the Makefile, you'll see the following lines in the first paragraph or so of code:

sources := $(call rwildcard,src/,*.cpp)
...
compileFlags := -std=c++17 -I include

The sources macro line will essentially generate a space-separated list of filepaths to all files ending in .cpp, inside the folder src (recursively) to be used as "sources". Thus, all of these will be compiled into objects (.o files) that are then linked into the executable.

The headers are never considered as …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@louishamelers
Comment options

Answer selected by louishamelers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants