build package in sub folder not finding main

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

 



i have a simple hello world i am trying to get working.  i have:

src/main.c
src/gtk/gtkmain.c
src/gtk/gtkmain.h

i almost got it working except that when it tries to build gtkmain it
fails with undefined reference to main.  looks like its trying to build a
final appllication and link it together.  but the gtkmain is only enabled
when the user selects it from configure as such:

./configure --with-gtk

src/makefile.am has
bin_PROGRAMS = mine
mine_SOURCES = main.c

src/gtk/makefile.am has
bin_PROGRAMS = gtk
gtk_SOURCES = gtk.c gtk.h

how can i build the dependencies without linking ?

thanks

matt


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux