# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

SCIDIR=../..
include ../../Version.incl

LIBRARY = $(SCIDIR)/libs/gtksci.a

# gtk 1 HTMLFLAGS=`gnome-config --cflags gnome`
# gtk 2 HTMLFLAGS=`pkg-config libgtkhtml-2.0 --cflags`
HTMLFLAGS=

# gtkmenu.c, gtkmarshalers.h and gtkintl.h 
# are only usefull for gtk version < 2.3.5 
# to correct a gtk bug (see configure.in) 

OBJSC =	io.o \
	menus.o  x_main.o \
	about.o queue.o helpbrowser.o    

OBJSF  = 

include ../../Makefile.incl

CFLAGS = $(CC_OPTIONS) $(TK_INC_PATH) $(TCL_INC_PATH) 
FFLAGS = $(FC_OPTIONS)

include ../Make.lib

# need gnome includes 


helpbrowser.o : helpbrowser.c 
	$(CC) $(CFLAGS) $(HTMLFLAGS) -c helpbrowser.c 

helpbrowser :  helpbrowser.c   queue.o
	$(CC) -DALONE $(CFLAGS) $(HTMLFLAGS)-o helpbrowser helpbrowser.c queue.o $(CC_LDFLAGS)  $(XLIBS)
OBJTEST = x_test_loop.o

# test 

test: $(OBJTEST) $(OBJSC) ../sun/zzledt.o ../sun/flags.o ../sun/h_help_data.o ../sun/men_Sutils.o ../sun/tmpdir.o ../sun/timer.o
	cd ../graphics; make ;cd ../xsci
	$(RM) $@
	$(CC) -g -o $@ $(OBJTEST) ../sun/zzledt.o ../sun/flags.o ../sun/h_help_data.o ../sun/tmpdir.o \
	../sun/men_Sutils.o ../sun/inffic.o ../sun/timer.o \
	$(OBJSC) $(SCIDIR)/libs/graphics.a $(SCIDIR)/libs/menusX.a \
	$(SCIDIR)/ $(CC_LDFLAGS) $(XLIBS) $(TERMCAPLIB) \
	$(TCLTK_LIBS) -lm

clean::
	$(RM) $(OBJTEST)
distclean::
	$(RM) $(OBJTEST) test


# generated with gcc -MMD 
about.o: about.c 

command.o: command.c ../graphics/Math.h ../machine.h \
  ../graphics/Graphics.h All-extern.h ../sun/Sun.h

helpbrowser.o: helpbrowser.c \
  ../graphics/Math.h ../machine.h ../graphics/Graphics.h All-extern.h \
  queue-gtk2.h uri.h

io.o: io.c ../graphics/Math.h \
  ../machine.h ../graphics/Graphics.h ../sun/Sun.h All-extern.h \
  ../tclsci/TCL_Global.h  ../stack-def.h

menus.o: menus.c ../graphics/Math.h ../machine.h ../graphics/Graphics.h \
  ../graphics/bcg.h  queue-gtk2.c queue-gtk2.h

x_main.o: x_main.c  ../version.h ../machine.h \
  ../graphics/Math.h ../graphics/Graphics.h All-extern.h 

x_VTPrsTbl.o: x_VTPrsTbl.c x_VTparse.h

zzledt-rl.o: zzledt-rl.c ../machine.h zzledt.txt

