How to make a source file?

How do I use a make file or compile the source codes for open source software?

  • I really like using open source software (OSS). However, often times there are no binaries, precompiled installation programs or the executable program itself. Instead the sources, the files that contain the module files or the source codes, are provided with a few files called "make files". How do I use a "make file" or compile the source codes for OSS?

  • Answer:

    A makefile is not a source file. However, it assists you in compiling the provided source files into binaries. Makefiles allow you just type "make" or "makeall" at the command prompt to compile some code which in the easiest case can be something like: gcc -o binaryname sourcefile Instead of typing the above at the command prompt, you can simply include that in the makefile and package it along with the source codes so that other users can simply compile the code without knowing the contents of a makefile.

eyesonlyus at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

A makefile is not a source file. However, it assists you in compiling the provided source files into binaries. Makefiles allow you just type "make" or "makeall" at the command prompt to compile some code which in the easiest case can be something like: gcc -o binaryname sourcefile Instead of typing the above at the command prompt, you can simply include that in the makefile and package it along with the source codes so that other users can simply compile the code without knowing the contents of a makefile.

princeof...

if you are using Linux, which you should be, use your package manager, which you should have, to get make then all you have to do is ./configure on the source (with appropriate modifiers) then "make install" on it. Otherwise you need a compiler that can compile that type of source.

dragoonmac

if you are using Linux, which you should be, use your package manager, which you should have, to get make then all you have to do is ./configure on the source (with appropriate modifiers) then "make install" on it. Otherwise you need a compiler that can compile that type of source.

dragoonmac

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.