File:  [Public] / Amaya / thotlib / Makefile.in
Revision 1.76: download - view: text, annotated - select for diffs
Wed Jun 2 16:30:57 2004 UTC (20 years ago) by vatton
Branches: MAIN
CVS tags: HEAD
The xbmhandler was used only by the MOTIF version.
Irene

#
# Makefile for thotlib directory
# Generated from thotlib/Makefile.in
# Daniel Veillard, 1997
#

.SUFFIXES: .cpp .c .o ND.o

@VPATHOPT@= @srcdir@
THOTDIR = @top_srcdir@
THOTINCLUDES=@THOTINCLUDES@

include ../Options

INCLUDES= -DHAVE_CONFIG_H -I.. -I@top_srcdir@/amaya/xpm ${THOTINCLUDES} $(GUI_INCLUDES) $(GL_INCLUDES) ${EXTRA_INCLUDES}
LIBS	= -L. -L.. @LIBS@ $(IMGLIBS) $(EXTRA_LIBS) $(GL_LIBRARIES) $(GTK_LIBRARIES) $(WX_LIBRARIES)

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
bindir = @bindir@
MACHINE= @target@

SUBDIRS = include
OBJDIRS = base content dialogue document editing image presentation tree unicode view

@SET_MAKE@

#
# Rule to build standard objects
#
.c.o :
	$(CXX) $(CXXFLAGS) $(THOT_OPTIONS) $(INCLUDES) -c $< -o $@

#
# Rule to build c++ files
#
.cpp.o :
	$(CXX) $(CXXFLAGS) $(THOT_OPTIONS) $(INCLUDES) -c $< -o $@

#
# Rule to build specific objects for libThotKernel.a
#
.cND.o :
	$(CXX) $(CXXFLAGS) $(THOT_OPTIONS) $(INCLUDES) -DNODISPLAY -c $< -o $@

all : directories libThotKernel.a libThotEditor.a

clean :
	$(RM) libThotKernel.a libThotEditor.a
	(for dir in $(OBJDIRS) ; do $(RM) -r $$dir/*.o ; done)

install :

uninstall:

directories :
	@(for dir in $(OBJDIRS) ; \
	  do if test ! -d $$dir ; then $(MKDIR) $$dir ; fi ; done)

force :

../amaya/libCSS.a : force
	@(cd ../amaya ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"  CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" libCSS)

include .depends

../tools/mkdep/mkdep : 
	@(cd ../tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" )

.depends depend : ../tools/mkdep/mkdep
	../tools/mkdep/mkdep -relative -vpath $(VPATH) $(INCLUDES) $(VPATH)/*/*.c  > .depends

#########################################################################
#									#
#		Rules to build the main libraries			#
#									#
#########################################################################

THOTK_OBJ = \
	base/global.o \
	base/fileaccess.o \
	base/memory.o \
	base/message.o \
	base/platform.o \
	base/registry.o \
	base/actions.o \
	base/units.o \
	document/externalref.o \
	document/language.o \
	document/readprs.o \
	document/readstr.o \
	document/readtra.o \
	document/schtrad.o \
	tree/exceptions.o \
	tree/tree.o \
	tree/checkaccess.o \
	tree/labelalloc.o \
	unicode/uconvert.o \
	unicode/ustring.o

KERNEL_OBJ = \
	base/batchmessage.o \
	base/structlist.o \
	content/contentapiND.o \
	content/contentND.o \
	dialogue/nodisplay.o \
	document/documentapiND.o \
	document/pivot.o \
	document/readpivot.o \
	document/schemasND.o \
	document/writepivotND.o \
	editing/applicationapiND.o \
	presentation/presentationapiND.o \
	tree/attributeapiND.o \
	tree/references.o \
	tree/referenceapiND.o \
	tree/structschema.o \
	tree/treeapiND.o 

DISPLAY_OBJ = \
	content/content.o \
	content/dictionary.o \
	image/encdec.o \
	dialogue/fontserver.o \
	dialogue/fontconfig.o \
	dialogue/font.o \
	dialogue/stix.o \
	document/documentapi.o \
	document/readpivot.o \
	document/schemas.o \
	document/translation.o \
	editing/applicationapi.o \
	image/abspictures.o \
	image/epshandler.o \
	image/gifhandler.o \
	image/jpeghandler.o \
	image/picture.o \
	image/pnghandler.o \
	image/xpmattrib.o \
	image/xpmcreate.o \
	image/xpmcrifrdata.o \
	image/xpmcrpfrdata.o \
	image/xpmcrpfri.o \
	image/xpmdata.o \
	image/xpmhandler.o \
	image/xpmhashtab.o \
	image/xpmimage.o \
	image/xpminfo.o \
	image/xpmmisc.o \
	image/xpmparse.o \
	image/xpmrdftoi.o \
	image/xpmrdftop.o \
	presentation/attrpresent.o \
	presentation/changepresent.o \
	presentation/presrules.o \
	presentation/presvariables.o \
	presentation/pschemaapi.o \
	presentation/style.o \
	tree/attributes.o \
	tree/pagecommands.o \
	tree/references.o \
	tree/structschema.o \
	view/absboxes.o \
	view/boxmoves.o \
	view/boxpositions.o \
	view/boxrelations.o \
	view/buildboxes.o \
	view/buildlines.o \
	view/changeabsbox.o \
	view/createabsbox.o \
	view/createpages.o \
	view/displaybox.o \
	view/displayview.o \
	view/frame.o \
	view/hyphen.o \
        view/tesse.o \
	view/glgradient.o \
	dialogue/glglyph.o \
	dialogue/openglfont.o \
	view/glwindowdisplay.o \
	view/gldisplay.o \
	view/spline.o

EDITOR_OBJ = \
	base/alloca.o \
	base/config.o \
	base/thotmsg.o \
	base/structlist.o \
	content/contentapi.o \
	content/search.o \
	content/searchref.o \
	content/word.o \
	dialogue/callback.o\
	dialogue/callbackinit.o \
	dialogue/appdialogue.o \
	dialogue/appli.o \
	dialogue/attrmenu.o \
	dialogue/browser.o \
	dialogue/closedoc.o \
	dialogue/colors.o \
	dialogue/context.o \
	dialogue/creationmenu.o \
	dialogue/dialogapi.o \
	dialogue/geom.o \
	dialogue/input.o \
	dialogue/interface.o \
	dialogue/keyboards.o \
	dialogue/modiftype.o \
	dialogue/profiles.o \
	dialogue/presentmenu.o \
	dialogue/printmenu.o \
	dialogue/searchmenu.o \
	dialogue/selectmenu.o \
	dialogue/AmayaCallback.o \
	dialogue/AmayaWindow.o \
	dialogue/AmayaPanel.o \
	dialogue/AmayaPage.o \
	dialogue/AmayaFrame.o \
	dialogue/AmayaCanvas.o \
	dialogue/AmayaNotebook.o \
	dialogue/AmayaURLBar.o \
	dialogue/AmayaToolBar.o \
	dialogue/appdialogue_wx.o \
	document/pivot.o \
	document/docs.o \
	document/views.o \
	document/writedoc.o \
	document/writepivot.o \
	editing/checkermenu.o \
	editing/editcommands.o \
	editing/scroll.o \
	editing/spellchecker.o \
	editing/selectionapi.o \
	editing/structcommands.o \
	editing/structcreation.o \
	editing/structmodif.o \
	editing/structselect.o \
	editing/textcommands.o \
	editing/undo.o \
	editing/undoapi.o \
	editing/unstructchange.o\
	image/pictureapi.o \
	presentation/presentationapi.o \
	tree/attributeapi.o \
	tree/paginate.o \
	tree/referenceapi.o \
	tree/res.o \
	tree/resmatch.o \
	tree/resgen.o \
	tree/treeapi.o \
	view/animbox.o \
	view/boxlocate.o \
	view/boxparams.o \
	view/boxselection.o \
	view/displayselect.o \
	view/glbox.o \
	view/gltimer.o \
	view/inites.o \
	view/tableH.o \
	view/unstructlocate.o\
	view/viewapi.o \
	view/xwindowdisplay.o

base/registry.o : @srcdir@/base/registry.c
	$(CXX) $(CXXFLAGS) $(THOT_OPTIONS) $(INCLUDES) \
	   -DCOMPILED_IN_THOTDIR=\"@top_srcdir@\" \
	   -DCOMPILED_IN_THOTDIR2=\"@prefix@/thot\" \
	   -DNODISPLAY \
	   -DMACHINE=\"$(MACHINE)\" -c @srcdir@/base/registry.c -o $@

libThotKernel : directories libThotKernel.a

libThotKernel.a : $(THOTK_OBJ) $(KERNEL_OBJ)
	$(AR) libThotKernel.a $(THOTK_OBJ) $(KERNEL_OBJ)
	$(RANLIB) libThotKernel.a
	@$(ECHO) "====>" libThotKernel is done

libThotEditor : directories libThotEditor.a

libThotEditor.a : $(THOTK_OBJ) $(DISPLAY_OBJ) $(EDITOR_OBJ)
	$(AR) libThotEditor.a $(THOTK_OBJ) $(DISPLAY_OBJ) $(EDITOR_OBJ)
	$(RANLIB) libThotEditor.a
	@$(ECHO) "====>" libThotEditor is done

#
# Rules for producing the print binary
#

PRINT_OBJ= \
	dialogue/nodialog.o \
	tree/paginatePP.o \
	view/initpses.o \
	view/psdisplay.o \
	view/printgl.o \
	view/tableH.o \
	editing/print.o

tree/paginatePP.o : @srcdir@/tree/paginate.c @srcdir@/include/thot_sys.h
	$(CXX) $(CXXFLAGS) $(THOT_OPTIONS) $(INCLUDES) -DPAGINEETIMPRIME -c @srcdir@/tree/paginate.c -o $@

print : ../bin ../bin/print

../bin :
	@(mkdir ../bin)

../bin/print : $(THOTK_OBJ) $(DISPLAY_OBJ) $(PRINT_OBJ) \
        ../amaya/libCSS.a
	$(CXX) $(LDFLAGS) -o $@ $(THOTK_OBJ) $(DISPLAY_OBJ) $(PRINT_OBJ) ../amaya/libCSS.a $(LIBS)
	@$(ECHO) "====>" print is done

CEXTRACT= ../bin/cextract

$(CEXTRACT) :
	@(cd ../tools/cextract-$(CEXTRACT_VER) ; $(MAKE) )

proto : ../bin/cextract
	@(for i in @srcdir@/*/*.c ; \
	  do \
	  dir=`dirname $$i`;base=`basename $$i .c`; \
	  dir="$$dir/../internals" ; \
	  if [ ! -d $$dir/f ] ; then $(MKDIR) $$dir/f ;fi;\
	  $(CEXTRACT) $(CEXTRACT_FLAGS) -o /tmp/cextract.$$base.$$$$ $$i 2> /dev/null ; \
	  if [ -f $$dir/f/"$$base"_f.h ] ; \
	  then \
	      delta=`$(DIFF) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h` ; \
	      if [ "$$delta" != "" ] ; \
	      then \
	          echo "  $$i proto changed" ; \
		  $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
              else \
	          $(RM) /tmp/cextract.$$base.$$$$ ; \
	      fi ; \
	  else \
	      echo "  $$i proto added" ; \
	      $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
	  fi ; \
	 done)


Webmaster