Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: cyberkoa on January 17, 2006, 06:15:47 am

Title: How to modify the Linux's build script if adding new source file
Post by: cyberkoa on January 17, 2006, 06:15:47 am
which file should I modify ? tiwag mentioned before is Makefile.am but I see a lot of Makefile.am.

I found that under wxSmith there is one , so I add to the Makefile.am. When I do a "make" , it gives message "no rule to compile xxxx.cpp"

Anything I left out ?   :(

Title: Re: How to modify the Linux's build script if adding new source file
Post by: yop on January 17, 2006, 08:41:45 am
You have to ./cofigure first when adding a new source file.
Title: Re: How to modify the Linux's build script if adding new source file
Post by: mandrav on January 17, 2006, 08:44:32 am
Anything I left out ?   :(

Yes, probably ;)
Post your modified Makefile.am.

You have to ./cofigure first when adding a new source file.

No need to run ./configure. This is needed only when adding a new Makefile.am. When editing an existing Makefile.am, it regenerates the Makefile automatically incorporating any changes.
Title: Re: How to modify the Linux's build script if adding new source file
Post by: cyberkoa on January 17, 2006, 06:05:28 pm
I found out what I left out already , I left out one 's' in the filename :oops:  because the wxSmith source used to start with "wxs" ..

manage to compile, link and load wxSmith plugin now. Makefile.am committed.

Linux version quite buggy compare to Windows version .. still testing in progress. ..
Title: Re: How to modify the Linux's build script if adding new source file
Post by: yop on January 17, 2006, 06:15:55 pm
No need to run ./configure. This is needed only when adding a new Makefile.am. When editing an existing Makefile.am, it regenerates the Makefile automatically incorporating any changes.
Learned something today thanks