I am programming in c++ on linux.
I have a program with 5 c++ files an tried to compile them with a "makefile" to avoid all the repetitions and time wast coming from that.
however, it doesn't really work.
I am new in this field, is it possible to get advice about this content?
makefile
I think you should create a target for StoreSimulator.o and use that file instead of StoreSimulator.cpp when building the StoreSimulator target. There is no reason why you should handle StoreSimulator.cpp any different from the other source files.
The dependencies for the StoreSimulator target should be the .o files.