LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to use make install (https://www.linuxquestions.org/questions/programming-9/how-to-use-make-install-673955/)

knobby67 10-03-2008 07:46 AM

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 :)

SkyEye 10-03-2008 07:55 AM

You can start your research on the topic with this, this and this.


All times are GMT -5. The time now is 06:54 PM.