LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-05-2007, 12:41 PM   #1
nasim_mallick
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
create makefile for a Linux project.


Hi all,

Could you please help me to create a makefile for a linux project?
I am describing in details.
I have created seven .cpp file for my project using wxWidgets-2.8.4.
and three .h file, and use lot of .h files of wxwidgets.
Now I want to create a make file for compile these .cpp files in fedra7 os and create a one executable file.

how can I add wxWidgets library path in makefile?.

Pleaes help with small example.

thinks
nasim
 
Old 08-06-2007, 06:15 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
try...

LDFLAGS = -L /blah/blah/lib -lwxWidgets

where wxWidgets is a guess at the name
 
Old 08-06-2007, 06:39 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
I think this may be more correct...

(put these in your makefile)

LDFLAGS = -L /path/to/lib
LDLIBS = -lwxWidgets
 
  


Reply


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
how to write makefile for a project greghua Programming 3 01-14-2006 07:26 AM
create GNU make Makefile from visualstudio project andreyk Programming 0 02-02-2005 11:25 AM
Linux shell command for makefile.in to create a text file and write to it alix123 Programming 8 01-07-2005 09:18 AM
How to create a Kernel 2.6 Makefile 7.e.Q Programming 1 11-03-2004 08:47 AM
Create my own configure and Makefile Ephracis Linux - Software 1 10-11-2004 09:00 PM

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

All times are GMT -5. The time now is 08:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration