LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-03-2008, 07:46 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
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
SkyEye
Member
 
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.
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:25 AM.

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