#******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile,v 1.2 2007/12/19 14:26:39 bjeram Exp $" 
#
# Makefile of lcuboot - LCU boot and automatic installation facility
#
# who        when       what
# ---------- ---------- ----------------------------------------------
# S.Sandrock 22.04.1995 created
# bjeram     2004-09-20 acsMakefile is used in case if we have ACSROOT (needed with vw 5.5)
#

#******************************************************************************
# This Makefile follows VLT Standards (see Makefile manpage documentation).
#******************************************************************************
# REMARKS
#    none
#------------------------------------------------------------------------

#
# MODULE CODE DESCRIPTION:
# ------------------------
USER_INC = -I$(WIND_BASE)/target/h/rpc

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

#
# brief description of lcuboot program
lcuboot_OBJECTS =	lcuboot		 \
			lcubootAutoDrv	 \
			lcubootAutoEnv	 \
			lcubootAutoGen	 \
			lcubootAutoLcc	 \
			lcubootFile	 \
			lcubootErrorLoad \
			lcubootLogInit   \
			lcubootVersion   \
	                lccVxwArch       \
			lcubootVxWorks

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

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

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

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

#xxx_OBJECTS  = 
#xxx_TCLSH    = 
#xxx_LIBS     = 

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

#......_OBJECTS  = ........


#
# man pages to be done
# --------------------
MANSECTIONS = 1 5
MAN1 =  $(SCRIPTS) $(addsuffix .c, $(lcuboot_OBJECTS)) \
	$(addsuffix .tcl, $(TCL_SCRIPTS))
MAN3 =  
MAN5 =	$(wildcard ../BOOT/*.doc)
MAN7 =  $(SCRIPTS7) 

#
# list of all possible C-sources (used to create automatic dependencies)
# ------------------------------
CSOURCENAMES = \
	$(foreach exe, $(EXECUTABLES) $(EXECUTABLES_L), $($(exe)_OBJECTS))

#
# INCLUDE STANDARDS
# -----------------
MAKE_VXWORKS = on   

ifdef ACSROOT
   MAKEDIRTMP := $(shell searchFile include/acsMakefile)
   ifneq ($(MAKEDIRTMP),\#error\#)
      MAKEDIR := $(MAKEDIRTMP)/include
      include $(MAKEDIR)/acsMakefile
   endif
else
    MAKEDIR = $(VLTROOT)/include
    include $(MAKEDIR)/vltMakefile
endif

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

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

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

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

#___oOo___
