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 04-11-2007, 02:49 PM   #1
sharathkv25
Member
 
Registered: Jul 2006
Distribution: HP-UX
Posts: 46

Rep: Reputation: 15
compile multiple modules in Makefile


Hi,

I have this Makefile

Code:
all:
        @cd jsp;         make all; @cd ics; make all

clean:
        @cd jsp;         make clean; @cd ics; make clean

clobber:
        @cd jsp;         make clean; @cd ics; make clean

depend:
        @echo "There are no dependencies to make for this module."
Only the files in "jsp" module are compiled, but not the ones in "ics" when this Makefile is executed.

Any ideas why??

I am able to compile the Makefile under "ics" without any problems.

This Makefile is located at the root of both "jsp" and "ics" modules.

Code:
Structure is as follows:
/DB
 |
 |------->Makefile ( Root Makefile )
 |
 |------->jsp/Makefile,file1,file2,...( jsp module )
 |
 |------->ics/Makefile,file1,file2,...( ics module )

Do you think I need to do a "../ics/make all" for "ics" since the present location may have changed to "jsp" module?

Thanks
 
Old 04-11-2007, 03:28 PM   #2
sharathkv25
Member
 
Registered: Jul 2006
Distribution: HP-UX
Posts: 46

Original Poster
Rep: Reputation: 15
Hi,

I fixed this problem.

Now for a fresh installation there are no executables present. The make utility is doing a "make clean all ...".

I,e It's first trying to do a "clean" before compiling with "all".

Now my issue is :

The make utility is exiting, since it's not finding any executables beacause it's doing a "make clean" first before a "make all" is being done. This is a fresh installation.

Have any of you ever come across such a problem?
thanks
 
  


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
configure Makefile to compile for multiple platforms StargateSteve Programming 0 03-26-2007 11:54 AM
makefile to compile kernel? RIgimp75 Slackware 7 07-19-2006 01:42 AM
How to compile the program with the makefile? Nishant Desai Programming 2 07-19-2006 12:07 AM
Makefile question - multiple compilation flags benobi Programming 7 08-11-2005 01:42 PM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM

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

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