thanks, i think i got that kinda working.

but now its compiling out of order.  i have src/main.c that calls the
gtkmain() in src/gtk-2.0/gtkmain.c   it tries to compile src/main.c first
and fails.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -Igtk-2.0     -c main.c
gcc    -o mine  main.o -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib
-lXi -lXext -lX11 -lm
main.o: In function `main':
main.c:(.text+0x30): undefined reference to `main_gtk'

how can i fix this?  i thought that make did things in the right order ?

thanks

matt

On Wed, 4 Jan 2006, Stepan Kasal wrote:

> Hello,
>
> On Wed, Jan 04, 2006 at 01:07:50AM -0600, Matt Hull wrote:
> > SUBDIRS = src cli-fe @GTK@
>
> use Automake conditionals:
>
> SUBDIRS = src cli-fe
> if WITH_GTK
>   SUBDIRS += gtk
> endif
>
> See the Automake manual for details.
>
> Have a nice day,
>       Stepan
>


Reply via email to