#******************************************************************************
# NRAO
#
# "@(#) $Id: Makefile,v 1.16 2007/10/11 14:00:10 bjeram Exp $"
#

#
# user definable C-compilation flags
#USER_CFLAGS = 
USER_RTAI_CFLAGS = -DEXPORT_SYMTAB

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


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

ACSERRDEF = rtlogErrType


# 
# IDL Files and flags
# 
IDL_FILES =	rtlog
IDL_TAO_FLAGS =
USER_IDL =


#
# RTAI modules
#
#TBD: rtlog_k rtlog_lxrt are here just for backward compatibilty. Should be removed in the future.
RTAI_MODULES    = rtLog
rtLog_OBJECTS = rtLog

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

#
# xxx app dependcies
xxxxx_OBJECTS  = 
xxxxx_LDFLAGS   =
xxxxx_LIBS     = 

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

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

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

rtlog_OBJECTS  = rtlogImpl
rtlog_LIBS     = rtlogErrType rtlogStubs baci cdb acscomponentStubs acsThread maciErrType rtlogTimeDataThread


rtlogTimeDataThread_OBJECTS = rtlogTimeDataThread
rtlogTimeDataThread_LIBS = acsThread
#
# Scripts (public and local)
# ----------------------------
SCRIPTS         =
SCRIPTS_L       =

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

PY_MODULES         =
PY_MODULES_L       =

PY_PACKAGES        =
PY_PACKAGES_L      =
pppppp_MODULES	   =

#
# Configuratin Database Files
# ----------------------
CDB_SCHEMAS = rtlog

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

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

#
# INS_ROOT files to be installed
#-------------------------------
INS_ROOT_FILES =
INS_ROOT_DIR   =

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

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

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

clean : clean_all 
	$(RM) *~ ../include/*~ ../dbl/*~ ../idl/*~ ../*~ core* ../bin/core*
	@echo " . . . clean done"

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

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

#___oOo___
