CDT 1.1 Release Candidate posted [message #70002] |
Tue, 13 May 2003 21:16  |
Eclipse User |
|
|
|
Hi all,
We've just posted the CDT 1.1 release candidate. You can find it on the CDT
download page under the nightly and stable builds. As mentionned before,
this
works with Eclipse 2.1. Please give it a try, if no major issues are
reported over
the next few days, this will become the CDT 1.1 GA release.
Thanks,
Sebastien
|
|
|
|
|
|
|
Re: CDT 1.1 Release Candidate posted [message #70138 is a reply to message #70079] |
Wed, 14 May 2003 20:09   |
Eclipse User |
|
|
|
Jerome Baumgarten schrieb:
> Hi,
>
> I just installed it but I'm having trouble with it. I can add a make target
> but how do you specify what it does ? How can you remove it ?
Assuming following structure:
[-] MyProject
| [+] lib_a <- Library A for Project
| | [+] include <- Include (Header) for Library A
| | [+] src <- Sources for Library A
| | Makefile <- Makefile for Library A
| |
| [+] lib_b <- Library B for Project
| | [+] include <- Include (Header) for Library B
| | [+] src <- Sources for Library B
| | Makefile <- Makefile for Library B
| |
| [+] include <- Includes (Header) for Project
| [+] src <- Sources for Project
| | Makefile <- Makefile for Project
There are two Libraries ( A & B ) for this Project, and the main
programs Source is held in the bottom part of the structure.
Put in each Makefile the following main rules:
##### Makefile for Library A Start ######
PROGRAMS = lib_a.a
# add necessary objects here
OBJECTS =
..PHONY: all debug clean
# check if we want to build debug stuff
ifeq ($(MAKECMDGOALS),debug)
CFLAGS += -g
endif
all: $(PROGRAMS)
debug: $(PROGRAMS)
clean:
-$(RM) $(PROGRAMS) $(OBJECTS) core
# this only in Makefile for Library A
lib_a.a: $(OBJECTS)
ar cr $@ $<
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
##### Makefile for Library A End ######
##### Makefile for Library B Start ######
PROGRAMS = lib_b.a
# add necessary objects here
OBJECTS =
..PHONY: all debug clean
# check if we want to build debug stuff
ifeq ($(MAKECMDGOALS),debug)
CFLAGS += -g
endif
all: $(PROGRAMS)
debug: $(PROGRAMS)
clean:
-$(RM) $(PROGRAMS) $(OBJECTS) core
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
##### Makefile for Library B End ######
##### Makefile for Main Program start ######
PROGRAMS = myprog
# add necessary objects here
OBJECTS =
..PHONY: all debug clean
# check if we want to build debug stuff
ifeq ($(MAKECMDGOALS),debug)
CFLAGS += -g
endif
all: $(PROGRAMS)
debug: $(PROGRAMS)
clean:
-$(RM) $(PROGRAMS) $(OBJECTS) core
# this only in Makefile for Library A
myprog: $(OBJECTS)
$(CC) -o $@ $< $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
##### Makefile for Main Program End ######
Now you can for each folder containing the Makefile add each
all
debug
clean all
clean debug
and you can now select the folder to rebuild and choose from
the target submenu one of the above.
So, i.e. for Library A to be rebuild with debug symbols compiled in
and an prior clean of stale object files you will do:
* select the folder lib_a
* right click on that folder
* select "Make"->"clean debug"
The lib_a.a will now being rebuild.
As you can see, the 'clean debug' will be added to the call of the make
program.
NOTE that you must be in the C/C++ Project View to do this, NOT in the
Navigator View! Make sure, you have the all, debug and clean rules. They
are actually a defacto standard in using Makefiles.
>
> Also, I created by hand a makefile but CDT just ignores it.
Don't know, what you did.
|
|
|
|
|
|
|
Re: CDT 1.1 Release Candidate posted [message #70609 is a reply to message #70452] |
Sun, 18 May 2003 21:02  |
Eclipse User |
|
|
|
Originally posted by: thodak.heio.net
ok.thanks for your help!
<sebastien@qnx.com> wrote:
> Hmmm... it looks like help just plain does not work with your eclipse
> install.
> I have to admit I don't know the answer; you might want to post this in
> the general eclipse newsgroup as a "help under Linux" question.
|
|
|
Powered by
FUDForum. Page generated in 0.04864 seconds