TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

# Install Scripts:
SCRIPTS_HOST += raven_caput-script.sh
SCRIPTS_HOST += condor_caput-script.sh
SCRIPTS_HOST += kestrel_caput-script.sh
SCRIPTS_HOST += hawk_caput-script.sh
SCRIPTS_HOST += eagle_caput-script.sh


#===================================================
# build an HOST application
#===================================================
## Special Network Test program from WRS
PROD_HOST += uxBlastee
uxBlastee_SRCS = uxBlastee.c

PROD_HOST += uxBlaster
uxBlaster_SRCS = uxBlaster.c

#===================================================
# build an vxWorks ioc application
#===================================================
PROD_IOC = theOne
# theOne.dbd will be created and installed
DBD += theOne.dbd

# theOne.dbd will be made up from these files:
theOne_DBD += base.dbd
# theOne_DBD += spectrumRecord.dbd


ifeq ($(T_A),vxWorks-mpc8540)
        CONFORM_CFLAGS_ANSI =
        CONFORM_CFLAGS_STRICT =
       BIN_INSTALLS_vxWorks += speTest.o
#      BIN_INSTALLS_vxWorks += e500_validate.o

endif

ifeq ($(T_A),vxWorks-ppc604_long)
#	ARCH_DEP_CFLAGS += -mabi=altivec
#	BIN_INSTALLS_vxWorks += altivecTest.o
#	BIN_INSTALLS_vxWorks += myAltivec1.o
#	BIN_INSTALLS_vxWorks += myAltivec2.o
#        BIN_INSTALLS_vxWorks += helloWorld.o
#	BIN_INSTALLS_vxWorks += abs_Altivec.o
#	BIN_INSTALLS_vxWorks += astest_vx6.2.o
endif


ifeq ($(T_A),vxWorks-ppc604_long)
#	ARCH_DEP_CFLAGS += -mabi=altivec
#	BIN_INSTALLS_vxWorks += altivecTest.o
#	BIN_INSTALLS_vxWorks += myAltivec1.o
#        BIN_INSTALLS_vxWorks += myAltivec2.o
#        BIN_INSTALLS_vxWorks += helloWorld.o
#	BIN_INSTALLS_vxWorks += abs_Altivec.o
#	BIN_INSTALLS_vxWorks += astest_vx6.2.o
endif

# Floating Point Test from Alan Honey
BIN_INSTALLS_vxWorks += fppTest.o
BIN_INSTALLS_vxWorks += cppStrinTest.o

# To demonstrate how to time a single subroutine using the VxWorks timex() routine.
# The timex() routine times a single execution of a specified function with up to 
# eight integer arguments to be passed to the function. 
# When execution us complete, timex() routine displays the execution time 
# and a margin of error in miliseconds. If the execution was so fast relative to 
# the clock rate that the time is meaningless(error > 50%), 
# a warning message will appear. In such cases, use timexN() which will
# repeatedly execute the function until the time of a single iteration is known with reasonable certainty.
BIN_INSTALLS_vxWorks += testing_timex.o



# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
theOne_SRCS += theOne_registerRecordDeviceDriver.cpp
theOne_SRCS_DEFAULT += theOneMain.cpp
theOne_SRCS_vxWorks += -nil-


#================================================================================
# NOTES:
#      1)It is not possible to build sncExample both as a component of theOne
#        and standalone. You must choose only one.
#      2)To build sncExample SNCSEQ must be defined in <top>/configure/RELEASE
#================================================================================

#=============================================================================
# The following builds sncExample as a component of theOne
#=============================================================================
# Also in <your seqName>.dbd add the line registrar(<your seqName>Registrar)
# In the following case just look at the sncExample and create your own sequence
# programs.

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file


# Let's get all of the EPICS Record support etc...
# Such as --  ai, ao, bi, etc...

# theOne_LIBS += spectrumRecord
theOne_LIBS += $(EPICS_BASE_IOC_LIBS)



# The following adds support from base/src/vxWorks
# That is iocCoreLibrary --- the EPICS Kernel which
# includes vxComLibrary.
theOne_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

# Do ca regression test from the IOC as well.
# acctst <channel name>  <interest level>
theOne_OBJS_vxWorks += $(EPICS_BASE_BIN)/acctst

#===============================================================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE
