#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.3 2004/09/22 12:53:35 mpasquat Exp $" 
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# gchiozzi  30/08/98  Fixed obsolete reference to libslalib (now libsla)
# mnastvog  18/01/95  created
#

#*******************************************************************************
# This Makefile follows VLT Standards (see Makefile(5) for more).
#*******************************************************************************
# REMARKS
#    None
#------------------------------------------------------------------------

#
# user definable C-compilation flags
#USER_CFLAGS = 

#
# additional include and library search paths
#USER_INC = 
#USER_LIB = 
#TESTLIBS = tcs tcsVcc evh eccs fnd sla misc C++ m
#TESTLIBS = sla misc C++ m
TESTLIBS = sla C++ m

#
# MODULE CODE DESCRIPTION:
# ------------------------
# As a general rule:  public file are "cleaned" and "installed"  
#                     local (_L) are not "installed".

#
# C programs (public and local)
# -----------------------------
EXECUTABLES     = x_cl x_jp
#EXECUTABLES_L   = 

#
# <brief description of xxxxx program>

#xxxxx_LDFLAGS   =
#x_pm_LIBS      = 

#
# special compilation flags for single c sources
#x_pm_CFLAGS   =  

#
# Includes (.h) files (public only)
# ---------------------------------
INCLUDES        = astro.h pmachine.h

#
# Libraries (public and local)
# ----------------------------
LIBRARIES       =
LIBRARIES_L     =

#
# <brief description of lllll library>
x_pm_LIBS      = $(TESTLIBS)
x_pm_OBJECTS   = \
	x_pm 

x_cl_LIBS      = $(TESTLIBS)
x_cl_OBJECTS   = \
	x_cl 

x_jp_LIBS      = $(TESTLIBS)
x_jp_OBJECTS   = \
	x_jp 

x_one_LIBS      = $(TESTLIBS)
x_one_OBJECTS   = \
	x_one 


#
# Scripts (public and local)
# ----------------------------
SCRIPTS         =
SCRIPTS_L       = allTests

#
# TCL scripts (public and local)
# ------------------------------
TCL_SCRIPTS     =
TCL_SCRIPTS_L   =

#
# <brief description of tttttt tcl-script>
tttttt_OBJECTS  =
tttttt_TCLSH    = 
tttttt_LIBS     = 

#
# TCL libraries (public and local)
# ------------------------------
TCL_LIBRARIES   =
TCL_LIBRARIES_L =

#
# <brief description of tttlll library>
tttlll_OBJECTS  = 


#
# man pages to be done
# --------------------
MANSECTIONS =
MAN1 =
MAN3 =
MAN5 =
MAN7 =
MAN8 =

#
# local man pages
# ---------------
MANl =

#
# ASCII file to be converted into Framemaker-MIF
# --------------------
ASCII_TO_MIF = 


#
# list of all possible C-sources (used to create automatic dependencies)
# ------------------------------
CSOURCENAMES = \
	$(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS)) \
	$(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS))

#
#>>>>> END OF standard rules

#
# CHOSE PLATFORM
# --------------
# Default is UNIX, for VxVorks application next line MUST BE UNCOMMENTED
#MAKE_VXWORKS = on   

#
# INCLUDE STANDARDS
# -----------------

ifdef ACSROOT
   MAKEDIRTMP := $(shell searchFile include/acsMakefile)
   ifneq ($(MAKEDIRTMP),\#error\#)
      MAKEDIR := $(MAKEDIRTMP)/include
      include $(MAKEDIR)/acsMakefile
   endif
else
   MAKEDIRTMP := $(shell searchFile include/vltMakefile)
   ifneq ($(MAKEDIRTMP),\#error\#)
      MAKEDIR := $(MAKEDIRTMP)/include
      include $(MAKEDIR)/vltMakefile
   endif
endif

#
# TARGETS
# -------
all:	do_all
	@echo " . . . 'all' done" 

clean : clean_all 
	$(AT) $(RM) *~ *.diff *.rep ../dbl/*~ core .gdb* 
	@echo " . . . clean done"

man   : do_man 
	@echo " . . . man page(s) done"

install : install_all
	@echo " . . . installation done"

#___oOo___
