LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2007, 05:05 AM   #1
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Rep: Reputation: 15
mkdep


Hi,

I was running Red Hat 9 until I recently installed Fedora Core 6. I have a project and within the makefile is the target "depend" which causes the program mkdep to be called. Now that I've installed FC6, mkdep is not there. I've searched for RPMs and the best match I've found is pmake-1.45-16 RPM for i386 from Fedora Core 3 for i386.

Is it a good idea to install the entire make facility from an older distribution?

Is there another tool for automatically creating a dependancy list I should know about?

TIA,

Lost Johnny
 
Old 01-31-2007, 10:44 PM   #2
benrose111488
Member
 
Registered: Jun 2004
Location: Wantage, NJ
Distribution: Fedora 7
Posts: 177

Rep: Reputation: 30
is it possible to import all the code into another IDE (I think Bloodshed DEV-C++ will work) and have the program regenerate a Makefile for you?
 
Old 02-01-2007, 03:23 AM   #3
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
is it possible to import all the code into another IDE (I think Bloodshed DEV-C++ will work) and have the program regenerate a Makefile for you?
Well, thanks for this - it's a thought. I'm really hoping for a less sledge-hammer-y solution - i.e. finding a way of installing mkdep that isn't part of a whole package that might not be compatible with the rest of my system (I've so far only found mkdep as part of pmake - for FC3), seeing as all the problem is at the moment is the absence of mkdep.

I know I should probably be looking at using an IDE anyway for productivity. But I'd really like to avoid the upheaval for now even if it is just a small amount (which it might not be).

Thanks again,

Lost Johnny
 
Old 02-01-2007, 04:08 AM   #4
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Original Poster
Rep: Reputation: 15
UPDATE:

I found mkdep in source form here:
http://www.linuxhq.com/kernel/v2.5/21/scripts/mkdep.c

I've compiled it, put it in /usr/bin, but when I run 'make depend' I get the following error:

mkdep: HPATH not set in environment. Don't bypass the top level Makefile.

Anyone any idea what's going on? Is that mkdep I downloaded specifically for use with the make system that recompiles the kernel?

Lost Johnny
 
Old 02-01-2007, 10:53 AM   #5
benrose111488
Member
 
Registered: Jun 2004
Location: Wantage, NJ
Distribution: Fedora 7
Posts: 177

Rep: Reputation: 30
environment variables can be see and altered using the export function

try running "export" to see if HPATH is set. If not export HPATH=/where/it/should/point/to

as far as where it should point to, i really don't know, I'm a complete n00b at C/C++
 
Old 02-02-2007, 03:35 AM   #6
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Original Poster
Rep: Reputation: 15
To answer my own question as to whether that mkdep is specifically for building the kernel, I think it is. I know HPATH isn't set in my shell - it's probably supposed to be set by make (or some called program or script) when building the kernel.

To answer another of my own questions from my original post, I've now found makedepend. I remember I couldn't use this last time I tried it under Red Hat 9. I can't remember why not - it was many moons ago. In the present day and having installed FC6 I find that I have this program and I've changed my makefile to use it. It seems to work. Hmm. Maybe I'll find out later on why I wasn't using it before.

For now, though, case closed.

Lost Johnny
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:48 PM.

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