Re: how to modify the makefile created by Glade



Ottavio Campana a écrit :
> 
> I've built  the gui  of an  application using  Glade. I've  written some
> functions which have to be called inside the callbacks and I put them in
> another file,  so that  the code is  easier to be  mantained. How  can I
> modify the  Makefile that Glade created  in order to have  this new file
> with the functions compiled inside my application?
> 
> I've seen that if I modify the line appl_name_OBJECTS I can specify some
> file like  libraries or  .o to be  included in the  main program,  but I
> don't know how to tell the gcc to create a .o file before.
> 
> Should I  modify some  other lines  or have I  to insert  a new  line in
> section all: ?
> 
> Thank you, and excuse me if my question is too stupid.
> 
> --
> Non c'è più forza nella normalità, c'è solo monotonia.
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
Hi,
You have to modify the file Makefile.am in the directory src
Just put your file in the line project_SOURCES like the other are put.
Then produce the Makefile.in and Makefile (if you don't want to bother
just do ./autogen.sh it will produce all Makefile...)
And that's it
If you modify other line in other file to compile your program, the next
time
you run autogen, it will erase your modification. That's why you must
change
the Makefile.am
-- 
Florent DEVIN




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]