To build Stargen from scratch,cd
to the directory where you extracted Stargen's files.
Then type the single-word command
If you want to rebuild Stargen after you've modified one or more of its source files, you normally only have to type the make
command again. It'll recompile only the files you've modified and will re-use compiled files that are unchanged.
If you want to start from scratch, type the two commandsmake clean
deletes all of the binary files created by the previous make
In the directory where you extracted the Stargen source (.c) files, among the files which were extracted should be one named
If that file doesn't exist, then you didn't extract everything you need. Software developers put into Makefile all of the commands which are needed to build their programs from source code.
command reads the Makefile which tells make
to run the gcc compiler and linker to build the Stargen executable. Unlike more sophisticated Makefiles, Stargen's does not include an "install" option to copy Stargen to /usr/local or other system directory. Instead, it just leaves the Stargen executable in the directory which contains the Makefile and source files.
Stargen's Makefile provides several functions, including
Code: Select all
Read the Makefile to find out what they do.
There are many tutorials available which describe how to use make and Makefile. Stargen's Makefile is relatively simple as such things go.