#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) European Southern Observatory, 2002
# Copyright by ESO (in the framework of the ALMA collaboration)
# and Cosylab 2002, All rights reserved
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
# MA 02111-1307  USA
#
# "@(#) $Id: Makefile,v 1.25 2006/12/13 16:42:10 acaproni Exp $"
#
# Makefile of Java Logging Client
#
# who       when      what
# --------  --------  ----------------------------------------------
# rgeorgie 2003-01-27 checked tests; all fine
# gchiozzi 2003-01-10 Removed lc.jar from IMSTALL_FILES. Done by Java target.
# rgeorgie 2002-11-25 Adding LogEntryTest and MyTest to the test directory
# rgeorgie 2002-11-12 Cleaning up files generated by eclipse
# rgeorgie 2002-11-12 Added clean_dist target
# almamgr 2001-09-18 uses acsMakefile and not vltMakefile
# jdovc	    14/02/02  created
# jdovc	    19/02/02  apputil.jar added to INSTALL SECTION
#

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

#
# Java code
# ------------------------------
DEBUG = on
JARFILES = lc
lc_DIRS = com alma

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


#
# 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
# -----------------
MAKEDIRTMP := $(shell searchFile include/acsMakefile)
ifneq ($(MAKEDIRTMP),\#error\#)
   MAKEDIR := $(MAKEDIRTMP)/include
   include $(MAKEDIR)/acsMakefile
endif


#
# TARGETS
# -------
all:	do_all
	@echo "== Adding extra files to lc.jar"
	@cd lc.jar.extras; jar -uf ../../lib/lc.jar *
	@echo " . . . 'all' done" 

clean : clean_all 
	@echo " . . . clean done"

clean_dist : clean clean_dist_all 
	@echo "Removing files generated by eclipse"
	$(RM) -rf ../bin/* hs_err* ../test/logs/*
	@echo " . . . clean done"

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

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


#___oOo___
