#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) European Southern Observatory, 2005 
# 
# 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.16 2012/01/21 22:48:11 tstaig Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# bjeram  2005-02-15  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   = testACSThread testACSThreadWithParameter testSelfDelThread \
                  testACSThreadStress \
                  testACSThreadStop testACSThreadTiming testACSThreadSuspend \
                  testACSThreadCorrExmpl testACSThreadNoTM \
                  testACSThreadDoubleLoop testACSThreadSleep	\
                  testACSThreadJoinable testACSThreadRestart testACSThreadGuard \
		  		testPosixThreads testACSThreadJoinableStress \
		  		testACSThreadStackSize

#
# <brief description of xxxxx program>
testPosixThreads_OBJECTS = testPosixThreads
testPosixThreads_LIBS = pthread

testACSThreadWithParameter_OBJECTS = testACSThreadWithParameter
testACSThreadWithParameter_LIBS = acsThread

testACSThread_OBJECTS   = testACSThread	
testACSThread_LIBS      = acsThread

testSelfDelThread_OBJECTS 	= testSelfDelThread
testSelfDelThread_LIBS 	     = acsThread

testACSThreadStress_OBJECTS 	= testACSThreadStress
testACSThreadStress_LIBS 	     = acsThread

testACSThreadStop_OBJECTS   = testACSThreadStop	
testACSThreadStop_LIBS      = acsThread

testACSThreadTiming_OBJECTS   = testACSThreadTiming	
testACSThreadTiming_LIBS      = acsThread

testACSThreadSuspend_OBJECTS   = testACSThreadSuspend	
testACSThreadSuspend_LIBS      = acsThread

testACSThreadCorrExmpl_OBJECTS   = testACSThreadCorrExmpl	
testACSThreadCorrExmpl_LIBS      = acsThread ACSErrTypeCommon

testACSThreadNoTM_OBJECTS   = testACSThreadNoTM	
testACSThreadNoTM_LIBS      = acsThread

testACSThreadDoubleLoop_OBJECTS   = testACSThreadDoubleLoop	
testACSThreadDoubleLoop_LIBS      = acsThread

testACSThreadSleep_OBJECTS   = testACSThreadSleep
testACSThreadSleep_LIBS      = acsThread

testACSThreadJoinable_OBJECTS   = testACSThreadJoinable
testACSThreadJoinable_LIBS      = acsThread

testACSThreadRestart_OBJECTS   = testACSThreadRestart
testACSThreadRestart_LIBS      = acsThread

testACSThreadGuard_OBJECTS   = testACSThreadGuard
testACSThreadGuard_LIBS      = acsThread

testACSThreadJoinableStress_OBJECTS  = testACSThreadJoinableStress
testACSThreadJoinableStress_LIBS      = acsThread

testACSThreadStackSize_OBJECTS  =   testACSThreadStackSize
testACSThreadStackSize_LIBS      = acsThread

#
# 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       = acsthreadTATEnv

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

acsthreadTest_OBJECTS = acsthreadTest
acsthreadTest_TCLSH   = expect

#
# Python stuff (public and local)
# ----------------------------
PY_SCRIPTS         =
PY_SCRIPTS_L       =

PY_MODULES         =
PY_MODULES_L       =

PY_PACKAGES        =
PY_PACKAGES_L      =
pppppp_MODULES	   =

#
# <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  = 

#
# Configuration Database Files
# ----------------------------
CDB_SCHEMAS = 

# 
# IDL Files and flags
# 
IDL_FILES =
IDL_TAO_FLAGS =
USER_IDL =
#
# Jarfiles and their directories
#
JARFILES= 
jjj_DIRS=
jjj_EXTRAS= 
#
# java sources in Jarfile on/off
DEBUG= 
#
# ACS XmlIdl generation on/off
#
XML_IDL= 
#
# Java Component Helper Classes generation on/off
#
COMPONENT_HELPERS=
#
# Java Entity Classes generation on/off
#
XSDBIND=
#
# Schema Config files for the above
#
XSDBIND_INCLUDE=
# 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 = 

#
# 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 rtos, $(RTAI_MODULES) , $($(rtos)_OBJECTS)) \
	$(foreach lib, $(LIBRARIES) $(LIBRARIES_L), $($(lib)_OBJECTS))

#
#>>>>> END OF standard rules

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

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

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

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

clean_dist : clean_all clean_dist_all 
	@echo " . . . clean_dist done"

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

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


#___oOo___
