LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-25-2007, 02:10 AM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
make file


hi all
how to use mozilla initialization utlity in make file.(gtk c)
i have to linkup some ".so" file direcly from the mozilla version library. in make file

is it possible .

please help me

thank you in advance
 
Old 07-25-2007, 04:38 AM   #2
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
hi
i got a strange problem..
i have to write make file script for this am giving here my ideas in step wise.
it has to be run in make file...(gtk c, makefile).
1.mozilla -V | sed -e 's/\([^,]*\),.*/\L\1/' -e 's/ /-/'
this is to know current mozilla version.
and the output has to store in a variable or string
(for example "i")after this immediately...run the second step.

2.whereis i
this is to know where the current mozilla version is.. in our machine...( here it will tell EX: /usr/lib/mozilla-1.7.13)
it has to be stored in a variable or string.. let us say "j"

3.-Lj -lxpcom
instead of giving like this
"-L/usr/lib/mozilla-1.7.13 -lxpcom"
am giving "-Lj -lxpcom" dynamically..
here am including the libxpcom.so to the exe. in the make file. j=path of the current mozilla directiory(/usr/lib/mozilla-1.7.13)
so that each and every time when the exe running.. it will check the current version and adds library path..

this all how to write in make file(using linux script)
please help me

thank you in advance
 
  


Reply



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
make complete image file from partition file for qemu lbdgwgt Linux - Newbie 2 11-16-2006 08:04 AM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 11:21 AM
make a .img file for custom liveCD, dd?? (Also, how to make your system very small) 1veedo Linux - Newbie 6 05-07-2006 05:52 PM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM

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

All times are GMT -5. The time now is 01:38 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