Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-03-2008, 07:46 AM   #1
Registered: Mar 2006
Posts: 612

Rep: Reputation: 42
how to use make install

Hello everyone
I hope someone can help my understanding of how to install some files from make, right now I simply cut and paste my directory however I'd like to automate this with make install and I'm having a few problems understanding the documentation.

Basically I want make to create a directory in usr/include and then copy my *.o files into it, then copy my *.a file to /usr/libs, of course these could be any directories.

I have a make file (not who file) like below

CC= g++ -Wall -pedantic -g -Os -ffloat-store -c
AR= ar
SOURCE_FILE= CplusLibaryFilesVer008

OBJECTS= $(SOURCE_FILE)/SetUpScreen.o #etc....

I want my *.o files from the source_file copied into a folder in usr/include and the *.a copied into usr/libs

I know I have to use install: but am unsure what to put in it.

Thanks in advance
Old 10-03-2008, 07:55 AM   #2
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
You can start your research on the topic with this, this and this.

Last edited by SkyEye; 10-03-2008 at 07:56 AM.


autotools, make

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
1st time installing redhat - Make and Make Install does not work runlikeanantelope Linux - Newbie 4 02-19-2007 03:58 PM
Unable to compile (make, make install):need linux-headers smiley_lauf Linux - Newbie 3 01-31-2006 12:05 AM
package compiling from source, make & make install concepts shujja Linux - Newbie 2 09-20-2005 12:18 AM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration