Index: /trunk/Ohana/Configure
===================================================================
--- /trunk/Ohana/Configure	(revision 2419)
+++ /trunk/Ohana/Configure	(revision 2419)
@@ -0,0 +1,28 @@
+# Configure file for Ohana Package
+#
+# this is the location of the package
+# change this to match your location of the source
+# ROOT    = /h/eugene/src/ohana
+ROOT    = /home/eugene/src/test/ohana
+#
+# destination directories:
+# these are the installation directories.
+# if you use a different toplevel directory than $(ROOT), you might 
+# need to copy the include files in $(ROOT)/include by hand to the destination
+LBIN	= $(ROOT)/bin/$(ARCH)
+LINC	= $(ROOT)/include
+LLIB	= $(ROOT)/lib/$(ARCH)
+LMAN	= $(ROOT)/man/man1
+#
+# X include and lib directories
+# put your X paths here if they are not automatically included (they
+# seem to be ok on most linux distributions)
+XINC    = /usr/openwin/include 
+XLIB    = -L/usr/openwin/lib -L/usr/X11R6/lib
+# 
+# prefered C compiler
+CC   = gcc -g -Wall -Werror
+#CC   = gcc -g
+
+# EXPORT = $(shell gettargets)
+EXPORT = manao:/apps/elixir/bin lawelawe:/apps/elixir/bin
Index: /trunk/Ohana/Makefile
===================================================================
--- /trunk/Ohana/Makefile	(revision 2419)
+++ /trunk/Ohana/Makefile	(revision 2419)
@@ -0,0 +1,103 @@
+# --------------------------------------------------------------------------- #
+# --------------------------------------------------------------------------- #
+#									      #
+#                 OOO    HH   HH    AAA    NN   NN    AAA		      #
+#               OO   OO  HH   HH  AA   AA  NNN  NN  AA   AA		      #
+#               OO   OO  HHHHHHH  AAAAAAA  NN N NN  AAAAAAA		      #
+#               OO   OO  HH   HH  AA   AA  NN  NNN  AA   AA		      #
+#                 OOO    HH   HH  AA   AA  NN   NN  AA   AA		      #
+#      								              #
+# --------------------------------------------------------------------------- #
+# --------------------------------------------------------------------------- #
+
+# This makefile compiles all Ohana package programs in the Elixir
+# system, and their libraries.  Most of the components in this
+# directory were created for Ohana, but there are a few libraries
+# which are from external sources: libjpeg, libpng, zlib, and
+# readline.  Extra care should be taken in compiling those libraries. 
+
+# .SILENT:								       
+default: all
+
+# Edit Configure to reflect the location of your installation
+include Configure
+
+# ARCH is used to isolate binaries from different architectures
+# warning: this is a gnu-make specific syntax
+ARCH = $(shell getarch)
+
+# The collection of Ohana programs.  Other components in the src
+# directory may be compiled by going to those directories. 
+PROGRAM = \
+addrefs    \
+addspphot  \
+addstar    \
+delstar    \
+dvo        \
+elixir     \
+gastro     \
+gastro2    \
+gcompare   \
+gophot     \
+imclean    \
+imregister \
+kapa       \
+kii        \
+misc       \
+mosastro   \
+nightd     \
+perl       \
+photdbc    \
+shell      \
+tcl        \
+uniphot
+
+SKIP = getusno markrock markstar 
+
+OLD = mana status 
+
+# Required libraries depends on the architecture
+LIBS-linux = libohana libfits libdummy
+LIBS-lin64 = libohana libfits libdummy
+
+# general build targets:
+links:
+	for i in $(PROGRAM) $(LIBS-$(ARCH)); do (cd src/$$i; ln -sf ../../Configure .); done
+
+libs:
+	mkdir -p lib/$(ARCH)
+	for i in $(LIBS-$(ARCH)); do make $$i.install; done
+
+bins: 
+	for i in $(PROGRAM); do make $$i; done
+
+all:
+	for i in $(LIBS-$(ARCH)); do make $$i.install; done
+	for i in $(PROGRAM); do make $$i || exit; done
+	for i in $(EXTRA); do make $$i || exit; done
+
+clean:
+	for i in $(LIBS-$(ARCH)); do make $$i.clean; done
+	for i in $(PROGRAM); do make $$i.clean; done
+
+dist:
+	for i in $(LIBS-$(ARCH)); do make $$i.dist; done
+	for i in $(PROGRAM); do make $$i.dist; done
+
+install:
+	for i in $(LIBS-$(ARCH)); do make $$i.install; done
+	for i in $(PROGRAM); do make $$i.install; done
+
+# standard rules: targets are foo, foo.clean, foo.install, foo.dist
+$(PROGRAM) $(LIBS-$(ARCH)): 
+	(cd src/$@; make $@)
+
+%.install:
+	mkdir -p bin/$(ARCH)
+	(cd src/$* && make install)
+
+%.clean:
+	(cd src/$* && make clean)
+
+%.dist:
+	(cd src/$* && make dist)
Index: /trunk/Ohana/getarch
===================================================================
--- /trunk/Ohana/getarch	(revision 2419)
+++ /trunk/Ohana/getarch	(revision 2419)
@@ -0,0 +1,36 @@
+#!/bin/csh -f
+
+# return a value for the current architecture, ohana standard set:
+
+set sys=`uname -s` 
+switch ($sys)
+ case IRIX64:
+   set arch="irix";
+   breaksw;
+ case SunOS:
+   set ver=`uname -r | awk '{print substr($1,1,1)}'`;
+   if ($ver == 5) then
+     set arch="sol";
+   else 
+     set arch="sun4";
+   endif
+   breaksw;
+ case Linux:
+   set arch="linux";
+   if (-e /etc/sidious.config) set arch="sid";
+   set mach=`uname -m`
+   if ("$mach" == "x86_64") then
+    set arch="lin64";
+   endif
+   breaksw;
+ case HP-UX:
+    set arch="hpux";
+    breaksw;
+ default:
+   echo "unknown architecture";
+   exit 1;
+   breaksw;
+endsw
+
+echo $arch
+exit 0;
