Results 1 to 2 of 2

Thread: Creating Makefiles in Linux for installing programs

  1. #1
    Join Date
    Oct 2011
    Posts
    1

    question Creating Makefiles in Linux for installing programs

    I have written a console program in C named main.c.

    I want to turn it into an application, so that using a Makefile and 'make' and 'make install' commands one is able to install that in his/her computer.

    Any ideas how to do that? I have searched tutorials for making the Makefile but they just tell me the way to compile the source files, not "install" them.

    PS, I use Fedora 15 and Code::Blocks Ide, if that is of any help.

    PPS : I have seen that copying the executable produced by gcc to /usr/bin directory does has the same result as installing. Is that what 'make install' command does?

  2. #2
    Join Date
    Dec 2007
    Posts
    1,736

    Re: Creating Makefiles in Linux for installing programs

    • Read the README file and other applicable docs.
    • Run xmkmf -a, or the INSTALL or configure script.
    • Check the Makefile.
    • If necessary, run make clean, make Makefiles, make includes, and make depend.
    • Run make.
    • Check file permissions.
    • If necessary, run make install.


    More information can be found here.

Similar Threads

  1. Creating M3U playlist in linux
    By Franny in forum Operating Systems
    Replies: 5
    Last Post: 26-05-2011, 07:57 PM
  2. Creating a Linux installer
    By Jensen Ackles in forum Operating Systems
    Replies: 5
    Last Post: 30-03-2010, 11:26 AM
  3. Creating a batch file to launch programs based on time
    By rblanda in forum Tips & Tweaks
    Replies: 3
    Last Post: 31-12-2009, 10:19 PM
  4. Installing Programs on WM6
    By Taipai in forum Portable Devices
    Replies: 3
    Last Post: 14-11-2009, 01:07 PM
  5. Creating a Linux command
    By Markos in forum Software Development
    Replies: 1
    Last Post: 03-01-2009, 08:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,038,817.65966 seconds with 17 queries