Makefiles and migrating to Eclipse [message #76201] |
Tue, 17 June 2003 11:51 |
Eclipse User |
|
|
|
Originally posted by: meghani.strandgenomics.com
Hi,
We have a Java/Swing project that was entirely built using vi and makefiles
We wish to port the entire project to Eclipse (read: use eclipse as an IDE)
However we find that we are not able to use our makefiles (which used to
perform some specific tasks)
How can we work around this problem?
Shripal
|
|
|
Re: Makefiles and migrating to Eclipse [message #76216 is a reply to message #76201] |
Tue, 17 June 2003 12:17 |
Eclipse User |
|
|
|
Originally posted by: stelian.iancu.gmx.net
On Tue, 17 Jun 2003 17:21:19 +0530, Shripal Meghani
<meghani@strandgenomics.com> wrote:
> Hi,
>
> We have a Java/Swing project that was entirely built using vi and
> makefiles
> We wish to port the entire project to Eclipse (read: use eclipse as an
> IDE)
> However we find that we are not able to use our makefiles (which used to
> perform some specific tasks)
> How can we work around this problem?
>
> Shripal
>
>
>
Well, AFAIK, you will not be able to use those makefiles from within
Eclipse, as it has no direct support for those. Maybe you can use an Ant
build file to perform those specific tasks. Eclipse integrates very nice
with Ant.
For information regarding Eclipse and Ant, see the Eclipse help. For
information about Ant, see http://ant.apache.org/
--
Stelian Iancu
Linux Registered User 287835
Be different. Think.
|
|
|
Re: Makefiles and migrating to Eclipse [message #76377 is a reply to message #76216] |
Tue, 17 June 2003 14:48 |
Eclipse User |
|
|
|
Originally posted by: kalabp.netscape.net
Depending on how many makefiles you have, you may be able to create simple
Ant build.xml files which simply exec make. This would be a bit quicker than
actually rewriting your makefiles.
Peter
"Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
news:oprqwu25na9svh55@news.gmx.net...
> On Tue, 17 Jun 2003 17:21:19 +0530, Shripal Meghani
> <meghani@strandgenomics.com> wrote:
>
> > Hi,
> >
> > We have a Java/Swing project that was entirely built using vi and
> > makefiles
> > We wish to port the entire project to Eclipse (read: use eclipse as an
> > IDE)
> > However we find that we are not able to use our makefiles (which used to
> > perform some specific tasks)
> > How can we work around this problem?
> >
> > Shripal
> >
> >
> >
>
> Well, AFAIK, you will not be able to use those makefiles from within
> Eclipse, as it has no direct support for those. Maybe you can use an Ant
> build file to perform those specific tasks. Eclipse integrates very nice
> with Ant.
>
> For information regarding Eclipse and Ant, see the Eclipse help. For
> information about Ant, see http://ant.apache.org/
>
> --
> Stelian Iancu
> Linux Registered User 287835
>
> Be different. Think.
|
|
|
Re: Makefiles and migrating to Eclipse [message #76392 is a reply to message #76377] |
Tue, 17 June 2003 15:01 |
Eclipse User |
|
|
|
Originally posted by: meghani.strandgenomics.com
The problem is that most of the project was made on Linux using makefiles...
Now some of us are using cygwin to emulate linux on windows.
Some of both Linux and Windows users want to use eclipse...
the makefiles remain the same (more or less, only some library related
things change)
1. Does windows have a compatible make? (NMAKE is giving some errors)
2. How can I force Eclipse to run a make inside cygwin?
"Kalab, Peter" <kalabp@netscape.net> wrote in message
news:bcn9n1$g5v$1@rogue.oti.com...
> Depending on how many makefiles you have, you may be able to create simple
> Ant build.xml files which simply exec make. This would be a bit quicker
than
> actually rewriting your makefiles.
>
> Peter
>
> "Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
> news:oprqwu25na9svh55@news.gmx.net...
> > On Tue, 17 Jun 2003 17:21:19 +0530, Shripal Meghani
> > <meghani@strandgenomics.com> wrote:
> >
> > > Hi,
> > >
> > > We have a Java/Swing project that was entirely built using vi and
> > > makefiles
> > > We wish to port the entire project to Eclipse (read: use eclipse as an
> > > IDE)
> > > However we find that we are not able to use our makefiles (which used
to
> > > perform some specific tasks)
> > > How can we work around this problem?
> > >
> > > Shripal
> > >
> > >
> > >
> >
> > Well, AFAIK, you will not be able to use those makefiles from within
> > Eclipse, as it has no direct support for those. Maybe you can use an Ant
> > build file to perform those specific tasks. Eclipse integrates very nice
> > with Ant.
> >
> > For information regarding Eclipse and Ant, see the Eclipse help. For
> > information about Ant, see http://ant.apache.org/
> >
> > --
> > Stelian Iancu
> > Linux Registered User 287835
> >
> > Be different. Think.
>
>
|
|
|
Re: Makefiles and migrating to Eclipse [message #76692 is a reply to message #76392] |
Tue, 17 June 2003 18:11 |
Eclipse User |
|
|
|
Originally posted by: kalabp.netscape.net
As long as cygwin is in your path on Windows, you should be able to launch
cygwin commands from Eclipse. As an alternative to creating an Ant build.xml
file which uses the <exec> task to launch make, you could configure Eclipse
to run make directly using the external tools launcher. You may have to
configure Eclipse to run bash as the external tool and pass your make
command on the bash command line (e.g. the external program to launch is
bash, and the command line passed by Eclipse will be "-c make") to set up
the environment for make. Unfortunately I think you will have to experiment
with the external tool configuration to get this to work correctly, but it
should be possible.
Something else which may be worth trying is the Eclipse C/C++ IDE (CDT:
http://www.eclipse.org/cdt/) which supports make for building, but I don't
know how it would work with Java files.
Peter
"Shripal Meghani" <meghani@strandgenomics.com> wrote in message
news:bcnagg$h65$1@rogue.oti.com...
> The problem is that most of the project was made on Linux using
makefiles...
> Now some of us are using cygwin to emulate linux on windows.
>
> Some of both Linux and Windows users want to use eclipse...
> the makefiles remain the same (more or less, only some library related
> things change)
>
> 1. Does windows have a compatible make? (NMAKE is giving some errors)
> 2. How can I force Eclipse to run a make inside cygwin?
>
> "Kalab, Peter" <kalabp@netscape.net> wrote in message
> news:bcn9n1$g5v$1@rogue.oti.com...
> > Depending on how many makefiles you have, you may be able to create
simple
> > Ant build.xml files which simply exec make. This would be a bit quicker
> than
> > actually rewriting your makefiles.
> >
> > Peter
> >
> > "Stelian Iancu" <stelian.iancu@gmx.net> wrote in message
> > news:oprqwu25na9svh55@news.gmx.net...
> > > On Tue, 17 Jun 2003 17:21:19 +0530, Shripal Meghani
> > > <meghani@strandgenomics.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > We have a Java/Swing project that was entirely built using vi and
> > > > makefiles
> > > > We wish to port the entire project to Eclipse (read: use eclipse as
an
> > > > IDE)
> > > > However we find that we are not able to use our makefiles (which
used
> to
> > > > perform some specific tasks)
> > > > How can we work around this problem?
> > > >
> > > > Shripal
> > > >
> > > >
> > > >
> > >
> > > Well, AFAIK, you will not be able to use those makefiles from within
> > > Eclipse, as it has no direct support for those. Maybe you can use an
Ant
> > > build file to perform those specific tasks. Eclipse integrates very
nice
> > > with Ant.
> > >
> > > For information regarding Eclipse and Ant, see the Eclipse help. For
> > > information about Ant, see http://ant.apache.org/
> > >
> > > --
> > > Stelian Iancu
> > > Linux Registered User 287835
> > >
> > > Be different. Think.
> >
> >
>
>
|
|
|
Re: Makefiles and migrating to Eclipse [message #77015 is a reply to message #76377] |
Tue, 17 June 2003 22:16 |
Eclipse User |
|
|
|
Originally posted by: burner.zclipse.org
Kalab, Peter wrote:
> Depending on how many makefiles you have, you may be able to create simple
> Ant build.xml files which simply exec make. This would be a bit quicker than
> actually rewriting your makefiles.
Why not just call make as an external tool? Why bother with ant at all?
That's what I've done in these situations.
As far as make.exe for windows (as posed in another post), I would just
use cygwin's make.
mike
> Peter
|
|
|
Re: Makefiles and migrating to Eclipse [message #77103 is a reply to message #76377] |
Tue, 17 June 2003 22:22 |
Eclipse User |
|
|
|
Originally posted by: burner.zclipse.org
Kalab, Peter wrote:
> Depending on how many makefiles you have, you may be able to create simple
> Ant build.xml files which simply exec make. This would be a bit quicker than
> actually rewriting your makefiles.
Why not just call make as an external tool? Why bother with ant at all?
That's what I've done in these situations.
As far as make.exe for windows (as posed in another post), I would just
use cygwin's make.
mike
> Peter
|
|
|
|
Powered by
FUDForum. Page generated in 0.04092 seconds