File:  [Public] / Amaya / thotlib / Makefile.in
Revision 1.44: download - view: text, annotated - select for diffs
Wed Aug 22 14:35:45 2001 UTC (22 years, 10 months ago) by vatton
Branches: MAIN
CVS tags: HEAD, Amaya-5-3, Amaya-5-2
The module searchmenustr is not used by Amaya
Irene

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

.SUFFIXES: .c .o ND.o

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

include ../Options

INCLUDES= -DHAVE_CONFIG_H -I.. -I@top_srcdir@/amaya/xpm -I@top_srcdir@/tablelib/f @THOTINCLUDES@ $(X_FLAGS)
LIBS	= -L../tablelib -L. -L.. $(IMGLIBS) $(GTK_LIBRARIES) \
	  $(X_LIBS) -lXext $(X_PRE_LIBS) \
          -lX11 $(X_EXTRA_LIBS) @LIBS@ $(EXTRA_LIBS) -lm 

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 :
	$(CC) $(CFLAGS) $(THOT_OPTIONS) $(INCLUDES) -c $< -o $@

#
# Rule to build specific objects for libThotKernel.a
#
.cND.o :
	$(CC) $(CFLAGS) $(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 :

../tablelib/libThotTable.a : force
	@(cd ../tablelib ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" libThotTable)

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

include .depends

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

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

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

THOTK_OBJ = \
	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 \
	dialogue/font.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/xbmhandler.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

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/LiteClue.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/quit.o \
	dialogue/searchmenu.o \
	dialogue/selectmenu.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/structchange.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/boxlocate.o \
	view/boxparams.o \
	view/boxselection.o \
	view/displayselect.o \
	view/inites.o \
	view/structlocate.o\
	view/unstructlocate.o\
	view/viewapi.o \
	view/xwindowdisplay.o

base/registry.o : @srcdir@/base/registry.c
	$(CC) $(CFLAGS) $(INCLUDES) -DCOMPILED_IN_THOTDIR=\"@top_srcdir@\" \
	   -DCOMPILED_IN_THOTDIR2=\"@prefix@/thot\" \
	   -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 \
	editing/print.o

tree/paginatePP.o : @srcdir@/tree/paginate.c @srcdir@/include/thot_sys.h
	$(CC) $(CFLAGS) $(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) ../tablelib/libThotTable.a \
        ../amaya/libCSS.a
	$(CC) $(LDFLAGS) -o $@ $(THOTK_OBJ) $(DISPLAY_OBJ) $(PRINT_OBJ) ../amaya/libCSS.a -lThotTable $(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