#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.4 2002/07/10 12:05:38 vltsccm Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# atcsmgr  01/09/99  improved clean target
# rkarban  13/11/98  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 = 

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

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

#
# <brief description of xxxxx program>
xxxxx_OBJECTS   =	
xxxxx_LDFLAGS   =
xxxxx_LIBS      =

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

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

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

#
# <brief description of lllll library>
lllll_OBJECTS   =

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

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

#
# <brief description of tttttt tcl-script>
lsfdocXP2IMG_OBJECTS   = lsfdocXP2IMG
lsfdocXP2IMG_TCLSH     = seqWish

lsfdocWP2IMG_OBJECTS   = lsfdocWP2IMG
lsfdocWP2IMG_TCLSH     = seqWish

lsfdocX_OBJECTS   = lsfdocX
lsfdocX_TCLSH     = seqWish

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

#
# <brief description of tttlll library>
tttlll_OBJECTS  = 

#
# UIF panels (public and local)
# ----------------------------
PANELS   =
PANELS_L = 

#
# On-Line Database Files
# ----------------------
DBL_CLASSES = 
DBL_BCF =
DBL_FLAGS =
xxxx_DBL_FLAGS =

#
# man pages to be done
# --------------------
MANSECTIONS = 1
MAN1 = $(SCRIPTS) $(addsuffix .tcl, $(TCL_SCRIPTS))
MAN3 =
MAN5 =
MAN7 =
MAN8 =

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

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

#
# other files to be installed
#----------------------------
INSTALL_FILES =

#
# 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
# -----------------
MAKEDIR = $(VLTROOT)/include
include $(MAKEDIR)/vltMakefile

#
# TARGETS
# -------
clean:	clean_all
	$(AT)$(RM) ../object/*
	@echo " Removing docExpress temporary images"
	$(AT) cd ../Rose/doc ; rm -rf * ; cd -
	@echo " Removing Rose Web publisher"
	$(AT) cd ../Rose/Html ; rm -rf * ; cd -
	@echo " Cleaning directories"
	$(AT)find .. -name "*~" -exec rm -f {} \;
	$(AT)find .. -name "Images.BAK" -exec rm -rf {} \;
	@echo " . . . 'clean all' done" 

all:	do_all
	@echo " . . . 'all' done" 

XPdiagrams: 
	@echo " Filtering docExpress output to generate images"
	$(AT) cd ../Rose/doc; ../../../bin/lsfdocXP2IMG lsf.html
	@echo " . . . done"

WPdiagrams: 
	@echo " Filtering WebPublisher output to generate images"
	$(AT) cd ../Rose/Html; ../../../bin/lsfdocWP2IMG
	@echo " . . . done"
        
archive : clean_all
	@echo " Preparing for archive"
	$(AT) cd .. ; tar cf Rose.tar Rose ; gzip Rose.tar
	$(AT)$(RM) ../Rose
	@echo " Rose . . . done"
	@echo " . . . archive done"

expand	:
	@echo " Expanding from archive"
	$(AT) cd .. ; gunzip Rose.tar.gz ; tar xf Rose.tar ; rm -f Rose.tar
	@echo " . . . expand done"

#___oOo___
