yes they are only few files, just like shown..so I’d like to take the easiest way..but, the main thing is that I need this makefile for my universitary project, and the requirements are those that I wrote before..
so my question is, what you mean with commands into a shell script? would that still be a makefile or something different?
As TK said, the easiest way is to create a script that contains exactly what you would type on the command line to do all the things you need to do.
It is called “shell script” and contains just a list of commands, which are executed one by one. This works on any platform and always executes all commands given, no matter what.
If your university project demands for a “normal” makefile, you should really go the full way and read into
An easy way would be to find any open source project, that has a makefile and does what you need, and just copy and alter it.
On the other hand, make is really not so difficult, it is just a list of “what to build: how to build it” statements.
So, what is the difference between make and the shell script? Make will check for anything already present, which needs not to be made again, whereas the script will always build everything, which really should not be a problem for a small project.
ok after some work I managed to write this thing it works good
only question I have now, I can’t manage to put output files in differents DIRs, and take input files in differents DIRs, now it only works when files are in the same dir as makefile, and the generated files (objs, bins, lib) are created inside the same folder.