Hiya, as part of an assessment I have to hand in a code which requires a few non-standard libraries. In order to save submitting the header files and the code I would like to form a 'makefile' with the code and required add-ons sort of 'bundled' together. I have absolutely no idea idea how to go about doing this though and any suggestions would be greatly appreciated!
+2
A:
A makefile does not look to be what you are looking for. You cannot bundle things into a makefile. Think of a makefile as a file accompanying your source and header files that will contain the recipe. It will tell how to build your program using all the other files.
Didier Trosset
2010-10-21 15:48:43
So there isnt a way of only submitting one file?
Jack Medley
2010-10-21 15:50:55
@Jack: Make a tarbal: `tar czfv project.tgz project_directory`. You typically clean up in there first, of course (no point in sending editor backup files, object files for the wrong machine, etc...).
dmckee
2010-10-21 15:53:14
A:
Just package your source code and list the requirements in a description somewhere.
For example:
To use my program you need the curses library.
Let the responsability of getting/installing/configuring the required libraries be with the user of your source.
pmg
2010-10-21 15:50:33