#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.3 2004/09/22 12:52:11 mpasquat Exp $" 
#
# Makefile of sla - astronomical coordinate converter (runs on LCUs) 
#
# who       when      what
# --------  --------  ----------------------------------------------
# gchiozzi  04/06/97  Added entries for include files in ASCII_TO_MIF.
# gchiozzi  13/12/95  Modified for workstation
# mnastvog  18/01/95  created
# bgilli    18/10/95  added dsmat

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

#
# user definable C-compilation flags
USER_CFLAGS = -DUSE_ONLY_FAST_REFRACTION

#
# additional include and library search paths
#USER_INC = 
#USER_LIB = 

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

#
# C programs (public and local)
# -----------------------------
#EXECUTABLES_L   = 

#xxxxx_LDFLAGS   =
#xxxxx_LIBS      =

# special compilation flags for single c sources
#yyyyy_CFLAGS   = 

#
# Includes (.h) files (public only)
# ---------------------------------
INCLUDES        = slalib.h slamac.h

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

#
# astronomical coordinate converter
sla_OBJECTS   = $(basename $(wildcard *.c))

#
# special compilation flags for single c sources
#wiastro_CFLAGS  = -DVXWORKS 

#
# <brief description of lllll library>
lllll_OBJECTS   =

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

#
# 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 = ../include/slalib.h ../include/slamac.h


#
# 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   
OPTIMIZE=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 
	$(RM) *~ ../doc/*.pcode ../include/*~ ../*~ core ../CDT/*~
	@echo " . . . clean done"

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

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

#___oOo___
