~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina5/tina-libs/tina5_simple_build.sh

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #!/bin/bash
  2 #
  3 # Tina5 Simple Build System
  4 # -------------------------
  5 # 
  6 # Tina5 uses autoconf and automake: after obtaining the code, type
  7 #
  8 # ./bootstrap.sh
  9 # ./configure
 10 # make
 11 # make install
 12 #
 13 # in the tina-libs and tina-tools directories.  However, this script
 14 # provides a simple build system similar to the one used with Tina4.
 15 # There are three main circumstances where this might be useful:
 16 #
 17 # 1) You cannot get autoconf/automake to work (e.g. there are problems
 18 #    with Suse 9.1 on 64-bit hardware).  We will try to fix such problems
 19 #    when we get bug reports, but until we do the simple build system 
 20 #    can be used.
 21 # 2) You are developing in the Tina libraries, are recompiling 
 22 #    frequently, and want a fast build process. The simple build system
 23 #    more than three times faster than the autoconf/automake system
 24 #    (1m 4s compared to 3m 15s on my AMD 64 3500+ with 1GB ram, running
 25 #    under Suse 9.1 in 32 bit mode).
 26 # 3) You are a developer and want to experiment with different 
 27 #    Xview, Gtk or Motif libraries: using the simple build system it
 28 #    is easy to swap e.g. between different versions of Gtk simply
 29 #    by changing the variables below.
 30 #
 31 # In order to use the simple build system, first, run bootstrap.sh 
 32 # and configure as usual to ensure that config.h exists. Set up the 
 33 # library locations below, and then run this script to patch the 
 34 # Makefiles produced by automake with the Makefile.tina files in 
 35 # each source code directory.  
 36 #
 37 # paul.bromiley@manchester.ac.uk
 38 # 27/11/2004
 39 #
 40 # See www.tina-vision.net for more information.
 41 #
 42 #################################################################
 43 
 44 # 
 45 # Tina5 base locations
 46 # 
 47 
 48 export TINA_LIB_LIBDIR=/usr/local/Tina5/tina-libs/lib
 49 export TINA_TOOL_LIBDIR=/usr/local/Tina5/tina-tools/lib
 50 export TINA_LIB_BASEDIR=/usr/local/Tina5/tina-libs
 51 export TINA_TOOL_BASEDIR=/usr/local/Tina5/tina-tools
 52 
 53 #
 54 # Locations for X11, Xview, Tcl/Tk, Gtk/Gdk, and Motif/Lesstif
 55 # If you don't have libraries for one or more of these, leave the 
 56 # lines blank and set your TINA_X_GUI appropriately to prevent 
 57 # any attempt to build those widgets
 58 # 
 59 # A quick hint...
 60 # GTK_INCLUDEFLAGS: should list the places where you can find gtk.h, 
 61 #                   glib.h, and glibconfig.h
 62 #
 63 # Please don't delete lines from this section: comment them out, then add 
 64 # your own lines with a comment sepcifying your system type.  
 65 #
 66 
 67 #
 68 # Suse 9.1 32 bit
 69 #
 70 
 71 export XLIBS_LIBDIR=/usr/X11R6/lib
 72 export XLIBS_INCLUDEDIR=/usr/X11R6/include
 73 export XVIEW_INCLUDEDIR=/usr/openwin/include
 74 export XVIEW_LIBDIR=/usr/openwin/lib
 75 export MOTIF_INCLUDEDIR=/usr/X11R6/include
 76 export MOTIF_LIBDIR=/usr/X11R6/lib
 77 export TCL_LIBDIR=/usr/lib
 78 export TCL_INCLUDEDIR=/usr/include
 79 export GTK_INCLUDEFLAGS="-I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/include"
 80 
 81 #
 82 # Define the widget set that will be built. N.B. this affects which libraries get 
 83 # built, not which widget set your tinatools are built with. If you want to build 
 84 # a combination of libraries which is not given below (e.g. all but Motif) define 
 85 # a new value for TINA_X_GUI and edit 
 86 # $(TINA_TOOL_BASEDIR)/tinatool/gphx/Makefile.tina and 
 87 # $(TINA_TOOL_BASEDIR)/tinatool/wdgts/Makefile.tina accordingly
 88 #
 89 # 0 = XVIEW
 90 # 1 = XM
 91 # 2 = TCL
 92 # 3 = GTK
 93 # 4 = Build all of the above
 94 # 
 95 
 96 export TINA_X_GUI=4
 97 
 98 #
 99 # Set compiler flags: 
100 #
101 
102 export TINA_COMPILE_FLAGS="-pipe -g  -DHAVE_CONFIG_H"
103 
104 #
105 # The following copies Makefile.tina to Makefile in each directory of the Tina 5 source tree
106 #
107 
108 cd ${TINA_LIB_BASEDIR}/tina; cp Makefile.tina Makefile
109 cd ${TINA_LIB_BASEDIR}/tina/sys; cp Makefile.tina Makefile
110 cd ${TINA_LIB_BASEDIR}/tina/math; cp Makefile.tina Makefile
111 cd ${TINA_LIB_BASEDIR}/tina/image; cp Makefile.tina Makefile
112 cd ${TINA_LIB_BASEDIR}/tina/geometry; cp Makefile.tina Makefile
113 cd ${TINA_LIB_BASEDIR}/tina/file; cp Makefile.tina Makefile
114 cd ${TINA_LIB_BASEDIR}/tina/vision; cp Makefile.tina Makefile
115 cd ${TINA_LIB_BASEDIR}/tina/medical; cp Makefile.tina Makefile
116 cd ${TINA_TOOL_BASEDIR}/tinatool; cp Makefile.tina Makefile
117 cd ${TINA_TOOL_BASEDIR}/tinatool/draw; cp Makefile.tina Makefile
118 cd ${TINA_TOOL_BASEDIR}/tinatool/gphx; cp Makefile.tina Makefile
119 cd ${TINA_TOOL_BASEDIR}/tinatool/gphx/null; cp Makefile.tina Makefile
120 cd ${TINA_TOOL_BASEDIR}/tinatool/gphx/x11; cp Makefile.tina Makefile
121 cd ${TINA_TOOL_BASEDIR}/tinatool/gphx/gdk; cp Makefile.tina Makefile
122 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts; cp Makefile.tina Makefile
123 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts/null; cp Makefile.tina Makefile
124 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts/tcl; cp Makefile.tina Makefile
125 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts/xv; cp Makefile.tina Makefile
126 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts/xm; cp Makefile.tina Makefile
127 cd ${TINA_TOOL_BASEDIR}/tinatool/wdgts/gtk; cp Makefile.tina Makefile
128 cd ${TINA_TOOL_BASEDIR}/tinatool/tlbase; cp Makefile.tina Makefile
129 cd ${TINA_TOOL_BASEDIR}/tinatool/tlmedical; cp Makefile.tina Makefile
130 cd ${TINA_TOOL_BASEDIR}/tinatool/tlvision; cp Makefile.tina Makefile
131 
132 #
133 # Finally, build the libraries
134 #
135 
136 cd ${TINA_LIB_BASEDIR}/tina; make
137 cd ${TINA_TOOL_BASEDIR}/tinatool; make
138 cd ${TINA_LIB_BASEDIR}

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.