#{===============================================================================}
#{                                                                               }
#{   CUMMINS ENGINE COMPANY, INC.                                                }
#{   COPYRIGHT 1997 CUMMINS ENGINE COMPANY, INC.  ALL RIGHTS RESERVED            }
#{   This program may not be reproduced, in whole or in part in any form or by an}
#{   means whatsoever without the written permission of:                         }
#{       CUMMINS ENGINE COMPANY, INC.                                            }
#{       1460 National Road                                                      }
#{       Columbus, IN 47201                                                      }
#{                                                                               }
#{   File Name: CM5xx_Makefile.options                SDR: None                  }
#{                                                                               }
#{   File Description: This file is the options file for the CM5xx_Makefile.     }
#{                                                                               }
#{   Project Name:  P135                                                         }
#{                                                                               }
#{   Author: J. Mohos                    Creation Date:    25 JUL 94             }
#{                                                                               }
#{   Limitations:                                                                }
#{                                                                               }
#{      Language:   C, Motorola 68331 Assembler                                  }
#{      Processor:  Motorola 68331                                               }
#{      Platform:   CM5xx module                                                 }
#{                                                                               }
#{   Assumptions:                                                                }
#{                                                                               }
#{   Revision History: Please use ClearCase to get the revision history.         }
#{                                                                               }
#{   DSEE Compatibilty: See CM5xx_Makefile for compatibility notes.              }
#{                                                                               }
#{===============================================================================}

#
# Define the shell type to use for the Makefile shell commands.
#

PROJ=  P135
SHELL= /bin/sh
CC=    /program/mri/bin/mcc68k
ASM=   /program/mri/bin/asm68k
LNK=   /program/mri/bin/lnk68k
SHELL= /bin/sh

#
# The Microtek tools are available from various versions.
# If the MICROTEK_ROOT is defined as just /program/mri, then the
# version is read from the environment variable USR_MRI.
# If a specific version of the Microtek tools are needed, then
# MICROTEK_ROOT should be set to the absolute path the the versioned
# bin directory.
# A sample list of the latest to oldest is as follows:
#    /program/mri_017903
#    /program/mri_017576
#    /program/mri_v2.6
#    /program/mri_v2.5
#

MICROTEK_ROOT=	/program/mri_017903/bin


#
# The following macros define the specific tools needed to
# compile, assemble, and link the sources.
#

CC=             $(MICROTEK_ROOT)/mcc68k
ASM=            $(MICROTEK_ROOT)/asm68k
LNK=            $(MICROTEK_ROOT)/lnk68k


#
# The Microtek tools are licensed and after using one of the tools,
# the license should be released so that they aren't locked up.
# The following macro defines the path to the license server.
# Make sure the MICROTEK_ROOT macro points to the version required.
#

MLICENSE=	$(MICROTEK_ROOT)/mlicense

#
# Definitions for ORACLE access to the Data Dictionary
#

ORACLE_ROOT=		/vob/cm/dd/bin
BUILD_CONFIG=		$(ORACLE_ROOT)/OGC -n

#
# Define the processor type
#
M683XX_CHIP= 68331

#
# Define how the activation date should be calculated.
# A number of 10 digits gets put in (Default is 8700199999)
#   DAY is for the +- a day method
#   NONE is for the default of what is in the data_dict
#
# Examples:
#   clearmake -r -k -f /vob/premier/interface/CM5xx_Makefile ACT_DATE=NONE
#   clearmake -r -k -f /vob/premier/interface/CM5xx_Makefile ACT_DATE=DAY
#   clearmake -r -k -f /vob/premier/interface/CM5xx_Makefile ACT_DATE=9000199999
#
ACT_DATE= NONE


#
# Define the paths to the VOBs used for sources and for derived object storage.
#

HPILIB=   /vob/hpi_pt/code
FSSLIB=   /vob/premier/fss
BLDLIB=   /vob/p135/code/build
APPLIB=   /vob/p135/code/application
EPFLIB=   /vob/p135/code/application/epf
GOVLIB=   /vob/p135/code/application/governors
IFACELIB= /vob/p135/code/interface
JCOMMLIB= /vob/p135/code/jcomm
QINDLIB=  /vob/premier/industrial/code
INDLIB=   /vob/industrial/code
CINDLIB=  /vob/core0/industrial
P2LIB=    /vob/core0/p2_lib
DDLIB=    /vob/core0/data_dict.lib
CSPECLIB= /vob/p135/config_specs
TOOLLIB=  /vob/core0/tool_lib
DEVSYSLIB=  /vob/devsys/gcc/release/gtis2
SECLIB=   /vob/core0/security_lib
PROJ_DIR= p135

#
# Using the paths to the VOBs defined above create an INCLUDE_PATH macro that is
# used in the make file to indicate the search path for the includes.
#

INCLUDE_PATH= -I$(BLDLIB)            \
              -I$(P2LIB)

#
# Define a macro to indicate which data dictionary config spec to use
# in the building of the e2m file.
#

DDCS= $(BLDLIB)/data_dictionary_config_spec

#
# Define a macro to indicate AHAC feature config spec and the
# ahac tool that generates the header files index_table.h and
# name_table.h.
#

AHAC_FCS= $(BLDLIB)/p135_fcs.h
AHAC_FCS_OUTPUT= $(BLDLIB)/ahac_feat_cs
AHAC_TABLE_GEN= /vob/cm/ahac/bin/ahac

#
# Location of released boot loader
#

RELEASED_BOOT_LOADER= /vob/core0/release/Core.Boot_Loader.CM500/CM500_BL_Final_Link.S

#
# Define the target module that the build is designed for.
# The syntax is as follows:
#  MODULE_SPECIFIER =   -DCM5XX_APPLICATION ...
#
# The -D preceeding the definition is necessary to define a macro.
# If no macros are necessary then do not put anything after the = sign.
#  -DOBD_MODULE                        # Enables obd functionality
#  -DVSS_AVAILABLE                     # Enables lsg gain scheduling for VSS applications
#  -DJ1708_DATALINK                    # Enables the J1708 Datalink functionality
#  -DJ1939_DATALINK                    # Enables the J1939 Datalink functionality
#

MODULE_SPECIFIER=	-DCM5XX_APPLICATION \
			-DCM50x_MODULE      \
			-DCM50x_APPLICATION \
			-DCM500_MODULE      \
			-DCM500_APPLICATION \
			-DGPT_MODULE        \
                        -DJ1708_DATALINK    \
                        -DJ1939_DATALINK    \
			-DM68331

#
# The following statements will test to see if the environment variable SECURITY_SOURCE_DIR
# has been set.  If not, it will default the MACRO version of it to the security_lib.  Typically
# only the release administrator uses this environment variable to access security_lib.
# If the security_lib is requested, add the following statement to the clearmake command line:
# > clearmake ... SECURITY_SOURCE_DIR=/vob/core0/security_lib
#
# If the p2_lib is requested, then add:
# > clearmake ... SECURITY_SOURCE_DIR=/vob/core0/p2_lib
#

#ifndef SECURITY_SOURCE_DIR
	SECURITY_SOURCE_DIR=	$(SECLIB)
#endif


#
# The following list defines the paths to the standard system utilities used
# by the makefile.
#
AWK=		/usr/bin/awk
CP=		/usr/bin/cp
GREP=		/usr/bin/grep
MKDIR=		/usr/bin/mkdir
MV=		/usr/bin/mv
NAWK=		/usr/bin/nawk
RM=		/usr/bin/rm
RSH=		/usr/ucb/rsh


#
# Define the Memory Map boundries.
#

RAM_LOGICAL_START=                      0x0800000
RAM_LOGICAL_END_PRODUCTION=             0x081FFFF
RAM_LOGICAL_END_DEVELOPMENT=            0x084FFFF

FLASH_BLOCK_0_LOGICAL_START=            0x0000000
BOOT_LOADER_FIXED_DATA_LOGICAL_START=   0x0000008
FLASH_BLOCK_0_LOGICAL_END=              0x0003FFF

FLASH_BLOCK_1_LOGICAL_START=            0x0004000
DWN_LOADED_FLASH_BLOCK_1_LOGICAL_START= 0x0004400
FLASH_BLOCK_1_LOGICAL_END=              0x0005FFF

FLASH_BLOCK_2_LOGICAL_START=            0x0006000
FLASH_BLOCK_2_LOGICAL_END=              0x0007FFF

FLASH_BLOCK_3_LOGICAL_START=            0x0008000
FLASH_BLOCK_3_LOGICAL_END=              0x001FFFF

FLASH_BLOCK_4_LOGICAL_START=            0x0020000
FLASH_BLOCK_4_LOGICAL_END=              0x003FFFF

FLASH_BLOCK_5_LOGICAL_START=            0x0040000
FLASH_BLOCK_5_LOGICAL_END=              0x005FFFF

FLASH_BLOCK_6_LOGICAL_START=            0x0060000
FLASH_BLOCK_6_LOGICAL_END=              0x007FFFF

CPU32_MODULE_LOGICAL_START=             0x0FFE800
CPU32_MODULE_LOGICAL_END=               0x0FFFFFF

CAN_LOGICAL_START=                      0x0FFE800
CAN_LOGICAL_END=                        0x0FFEFFF

EEPROM_LOGICAL_START=                   0x1000000
DWN_LOADED_EEPROM_LOGICAL_START=        0x1000020
EEPROM_LOGICAL_END=                     0x10001FF

#
# C_SOURCE_TOOLS should list the mcc68k compiler tool as a dependency so that if
# the tool is updated, all sources that rely on it will also be updated.
#

C_SOURCE_TOOLS=$(CC)


#
# C_SOURCE_STANDARD_OPTIONS should list the standard options to send to the
# c compiler. These options should be common to all c compiled sources.
#

C_SOURCE_STANDARD_OPTIONS=      -A -g -Xp -Flp0 -Fsm -Zp2       \
                                -v -p68331 -Ot -Og -Or -Zm1     \
                                -c -DTHROUGHPUT_MEASUREMENT_ON  \
                                -DFLY_WHEEL_EPS                 \
                                -DINTERNAL_WATCHDOG_ENABLED     \
				-I$(SECLIB)			\
				-Feo -nFee -nQ


#
# C_SOURCE_FLASH0_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the boot loader
# flash region 0.
#

C_SOURCE_FLASH0_CONST_OPTIONS=  -NC.flash0


#
# C_SOURCE_DLFLASH1_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the downloaded
# flash region 1.
#

C_SOURCE_DLFLASH1_CONST_OPTIONS=  -NC.dlflash1


#
# C_SOURCE_NDLFLASH1_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the non-downloaded
# flash region 1.
#

C_SOURCE_NDLFLASH1_CONST_OPTIONS=  -NC.ndlflash1


#
# C_SOURCE_FLASH2_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the flash region 2.
#

C_SOURCE_FLASH2_CONST_OPTIONS=  -NC.flash2


#
# C_SOURCE_FLASH3_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the flash region 3.
#

C_SOURCE_FLASH3_CONST_OPTIONS=  -NC.flash3


#
# C_SOURCE_FLASH4_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the flash region 4.
#

C_SOURCE_FLASH4_CONST_OPTIONS=  -NC.flash4


#
# C_SOURCE_NDLEE_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the non-downloaded
# eeprom
#

C_SOURCE_NDLEE_CONST_OPTIONS=  -NC.ndlee


#
# C_SOURCE_DLEE_CONST_OPTIONS should list the options used to send to the
# c compiler when constant variables should be put into the downloaded
# eeprom
#

C_SOURCE_DLEE_CONST_OPTIONS=  -NC.dlee


#
# C_SOURCE_FLASH3_CODE_OPTIONS should list the options used to send to the
# c compiler to specify placing code in flash region 3.
#

C_SOURCE_FLASH3_CODE_OPTIONS=   -NT.flash3


#
# C_SOURCE_FLASH4_CODE_OPTIONS should list the options used to send to the
# c compiler to specify placing code in flash region 4.
#

C_SOURCE_FLASH4_CODE_OPTIONS=   -NT.flash4

#
# ASM_SOURCE_TOOLS should list the asm68k assembler tool as a dependency so that is
# the tool is updated, all sources that rely on it will also be updated.
#

ASM_SOURCE_TOOLS=$(ASM)


#
# ASM_SOURCE_OPTIONS should list the standard options to send to the
# assembler.  These options should be common to all assembly calls.
#

ASM_SOURCE_OPTIONS= -f "d,p=68331"


#
# LNK_SOURCE_TOOLS should list the lnk68k linker tool as a dependency so that if
# the tool is updated, all sources that rely on it will also be updated.
#

LNK_SOURCE_TOOLS=$(LNK)


#
# LNK_SOURCE_OPTIONS should list the standard options to send to the
# linker.  These options should be common to all linker calls.
#

LNK_SOURCE_OPTIONS=


#
# CODE_BLOCK_DEPENDS_TOOLS should list the lnk68k linker tool so that if
# the tool is updated, so is the CODE_BLOCK.
#

CODE_BLOCK_DEPENDS_TOOLS=$(LNK)



#
# FLASH4_CODE_BLOCK_DEPENDS_OBJECTS lists all of the object files
# that will be used in the linking stage to generate the code block object file.
#

FLASH3_CODE_BLOCK_DEPENDS_OBJECTS= $(P2LIB)/acc_noise_control.o                \
                        $(P2LIB)/ack_nack_size.o                \
                        $(P2LIB)/acknowledge.o          \
                        $(IFACELIB)/ad_convert.o                \
                        $(APPLIB)/adj_user_fueling.o          \
                        $(P2LIB)/afc_fueling.o          \
                        $(P2LIB)/afc_timing.o           \
                        $(APPLIB)/alpha.o                \
                        $(APPLIB)/alpha_base.o           \
                        $(P2LIB)/alt_derate.o           \
			$(APPLIB)/ambient_fueling/ambient_fueling.o	\
			$(APPLIB)/ambient_timing/ambient_timing.o	\
                        $(P2LIB)/application_can.o              \
                        $(P2LIB)/application_esp.o              \
                        $(IFACELIB)/application_power_down.o            \
                        $(IFACELIB)/application_powerup.o               \
                        $(GOVLIB)/asg.o                \
                        $(GOVLIB)/asg_application.o              \
                        $(P2LIB)/asg_jcomm.o            \
                        $(GOVLIB)/asg_select.o           \
                        $(GOVLIB)/asg_no_load_fuel.o           \
                        $(GOVLIB)/asg_throttle.o               \
                        $(P2LIB)/automotive_interface_powerup.o         \
                        $(P2LIB)/aux_driver.o           \
                        $(P2LIB)/bir_monitor.o                     \
                        $(P2LIB)/broadcast.o            \
                        $(P2LIB)/broadcast_manager.o            \
                        $(P2LIB)/build_j1587_message.o          \
                        $(JCOMMLIB)/build_pid_block.o           \
                        $(P2LIB)/calc_eec1.o            \
                        $(P2LIB)/calc_eec2.o            \
                        $(P2LIB)/calc_eec3.o            \
                        $(P2LIB)/calc_engine_cfg_msg.o          \
                        $(P2LIB)/calc_erc1.o            \
                        $(P2LIB)/cam_sync.o             \
                        $(P2LIB)/can_tx_message.o               \
                        $(P2LIB)/checksum.o             \
                        $(P2LIB)/cleanup_scratch_pad.o          \
                        $(P2LIB)/code_padding.o                 \
                        $(P2LIB)/commanded_throttle.o           \
                        $(IFACELIB)/convert_name.o                 \
			$(APPLIB)/coolant_fueling/coolant_fueling.o	\
			$(APPLIB)/coolant_timing/coolant_timing.o	\
                        $(P2LIB)/copy_eeprom_to_ram.o           \
                        $(IFACELIB)/copy_spi_data.o             \
                        $(P2LIB)/cors.o          \
                        $(P2LIB)/cpp_ex_commands.o              \
                        $(P2LIB)/crc_calculation.o              \
                        $(P2LIB)/curve_interp.o         \
                        $(APPLIB)/cylinder_pressure.o            \
                        $(P2LIB)/data_collector.o               \
                        $(P2LIB)/det_control_device.o           \
                        $(P2LIB)/det_peak_torque.o              \
                        $(IFACELIB)/diagnostic.o                \
                        $(IFACELIB)/discrete_io.o               \
                        $(IFACELIB)/discrete_io_multiplex.o              \
                        $(P2LIB)/dispatcher.o           \
                        $(P2LIB)/divide_utils.o         \
                        $(P2LIB)/dx_multipacket_data.o          \
                        $(P2LIB)/eeprom_handler.o               \
                        $(P2LIB)/enable_transmission.o          \
                        $(P2LIB)/engine_speed.o         \
                        $(APPLIB)/engine_startup.o               \
                        $(P2LIB)/engine_state.o              \
                        $(P2LIB)/epf_engine_cfg.o                  \
                        $(EPFLIB)/epf_main.o           \
                        $(EPFLIB)/epf_monitor.o                \
                        $(EPFLIB)/epf_pressure_limits.o        \
                        $(P2LIB)/epf_restart_before_cranking.o          \
                        $(P2LIB)/epf_restart_limitation.o               \
                        $(P2LIB)/epf_rpm_derate.o               \
                        $(EPFLIB)/epf_shutdown.o         \
                        $(P2LIB)/epf_sys_err_det.o              \
                        $(P2LIB)/epf_tvo_derate.o               \
                        $(APPLIB)/eps_process.o          \
                        $(IFACELIB)/executive.o         \
                        $(P2LIB)/fifo.o         \
                        $(P2LIB)/filter_s.o             \
                        $(P2LIB)/filter_u.o             \
                        $(APPLIB)/final_fueling.o                \
                        $(P2LIB)/flash_utils.o          \
                        $(P2LIB)/four_d_fuel.o          \
                        $(P2LIB)/four_d_timing.o                \
                        $(P2LIB)/fuel_curve.o                      \
                        $(P2LIB)/fuel_delivery.o                \
                        $(P2LIB)/fuel_shutoff.o         \
                        $(P2LIB)/full_throttle_fuel.o           \
                        $(IFACELIB)/gage_pressure.o             \
                        $(GOVLIB)/governor_wrap.o              \
                        $(GOVLIB)/hsg.o                \
                        $(P2LIB)/hsg_ref_speed.o                \
                        $(P2LIB)/hsg_gain_scheduling.o             \
       			$(P2LIB)/idle_shutdown.o   	\
                        $(P2LIB)/init_global.o          \
                        $(P2LIB)/initial_powerup.o              \
                        $(APPLIB)/initialize_alpha.o             \
                        $(P2LIB)/initialize_buffers.o           \
                        $(P2LIB)/interp_4d_table.o              \
                        $(P2LIB)/isr_can.o              \
                        $(P2LIB)/isr_internal.o         \
                        $(P2LIB)/isr_j1939.o            \
                        $(P2LIB)/isr_trap.o             \
                        $(P2LIB)/j1587_faults.o         \
                        $(P2LIB)/j1587_pid_192.o                \
                        $(P2LIB)/j1587_response.o               \
                        $(P2LIB)/j1587_utilities.o              \
			$(P2LIB)/j1708_here_is_data.o              \
			$(P2LIB)/j1708_req_data.o                  \
                        $(P2LIB)/j1922_mid_69.o         \
                        $(P2LIB)/j1922_mid_70.o         \
                        $(P2LIB)/j1922_mid_74.o         \
                        $(P2LIB)/j1922_mid_76.o         \
                        $(P2LIB)/j1922_mid_79.o         \
                        $(P2LIB)/j1922_mid_81.o         \
                        $(P2LIB)/j1922_mid_83.o         \
                        $(P2LIB)/j1922_mid_84.o         \
                        $(P2LIB)/j1922_monitor_clear.o          \
                        $(P2LIB)/j1922_occurrence_monitor.o             \
                        $(P2LIB)/j1939_address.o                \
                        $(P2LIB)/j1939_bcast_manager.o          \
                        $(P2LIB)/j1939_cpp_ex_commands.o                \
                        $(P2LIB)/j1939_datalink_mux.o              \
                        $(P2LIB)/j1939_dispatcher.o             \
                        $(P2LIB)/j1939_eb_sg.o          \
                        $(P2LIB)/j1939_here_is_data.o           \
                        $(P2LIB)/j1939_layer_71.o               \
			$(P2LIB)/j1939_layer_73_utils.o            \
                        $(P2LIB)/j1939_msg_format.o             \
                        $(P2LIB)/j1939_mux_handler.o               \
                        $(P2LIB)/j1939_occurrence_monitor.o             \
                        $(P2LIB)/j1939_rabn.o           \
                        $(P2LIB)/j1939_request_data.o           \
                        $(P2LIB)/j1939_xport_layer.o            \
                        $(P2LIB)/jcomm_message_monitor.o                \
                        $(P2LIB)/jcomm_mode_block.o             \
                        $(APPLIB)/lamps.o                \
                        $(P2LIB)/limp_home.o            \
                        $(P2LIB)/low_oil_pressure.o           \
                        $(GOVLIB)/lsg.o                \
                        $(P2LIB)/lsg_aggr_gain.o                \
                        $(P2LIB)/lsg_gain_scheduling.o          \
                        $(P2LIB)/lsg_idle_adjust.o              \
                        $(P2LIB)/lsg_jcomm_gain.o               \
                        $(GOVLIB)/lsg_ref_spd.o          \
                        $(APPLIB)/m683xx_spi.o           \
                        $(P2LIB)/mem_copy.o             \
                        $(P2LIB)/misfire_timing_limit.o         \
                        $(P2LIB)/muldiv.o               \
                        $(P2LIB)/no_load_fuel.o         \
			$(INDLIB)/oil_ch_mon/ocm_base.o	\
                        $(P2LIB)/obd.o          \
                        $(P2LIB)/olm.o          \
                        $(P2LIB)/output_port.o          \
                        $(P2LIB)/percent_load.o         \
                        $(P2LIB)/pid_193.o              \
                        $(P2LIB)/pid_194.o              \
                        $(P2LIB)/pid_234.o              \
                        $(P2LIB)/pid_237.o              \
                        $(P2LIB)/pid_243.o              \
                        $(P2LIB)/pid_fault_manager.o            \
                        $(IFACELIB)/power_down.o           \
                        $(APPLIB)/powerup.o              \
                        $(P2LIB)/powerup_can.o          \
                        $(JCOMMLIB)/powerup_j1939.o     \
                        $(P2LIB)/powerup_serial.o               \
                        $(P2LIB)/prog_bootloader.o              \
                        $(P2LIB)/prog_j1708_blocks.o               \
                        $(P2LIB)/proprietary_non_restricted.o           \
                        $(P2LIB)/proprietary_restricted.o               \
                        $(GOVLIB)/pto.o                \
                        $(P2LIB)/pto_ref_spd.o                     \
                        $(GOVLIB)/pto_throttle_override.o           \
                        $(P2LIB)/pwm_diagnostics.o              \
                        $(P2LIB)/pwm_generator.o                \
                        $(P2LIB)/ram_clear.o            \
                        $(P2LIB)/ram_refresh.o          \
                        $(P2LIB)/response_size.o                \
                        $(P2LIB)/rx_cpp_msg.o           \
                        $(P2LIB)/rx_dm3_msg.o                      \
                        $(P2LIB)/rx_dm7_msg.o                      \
                        $(JCOMMLIB)/rx_request_msg.o               \
                        $(P2LIB)/rx_engine_etc1_msg.o           \
                        $(P2LIB)/rx_engine_tsc1_msg.o           \
                        $(P2LIB)/rx_retarder_tsc1_msg.o         \
                        $(P2LIB)/rx_tsc1_msg.o                  \
                        $(APPLIB)/secondary_ad.o                 \
                        $(SECURITY_SOURCE_DIR)/security.o       \
                        $(IFACELIB)/snapshot_clear.o            \
                        $(IFACELIB)/snapshot_table.o            \
                        $(P2LIB)/surface_interp.o               \
                        $(P2LIB)/sw_timer_private.o             \
                        $(P2LIB)/tachometer.o                      \
                        $(P2LIB)/timer1_overflow.o              \
                        $(APPLIB)/timing_selection.o             \
                        $(APPLIB)/torque_derate.o              \
                        $(P2LIB)/tsc1_table.o           \
                        $(P2LIB)/tx_ack_msg.o                      \
                        $(JCOMMLIB)/tx_ambient_conditions_msg.o            \
                        $(JCOMMLIB)/tx_aux_discrete_io_status_msg.o   \
                        $(P2LIB)/tx_component_id_msg.o          \
                        $(P2LIB)/tx_cpp_ack_msg.o               \
                        $(P2LIB)/tx_dm1_msg.o                      \
                        $(P2LIB)/tx_dm2_msg.o                      \
                        $(JCOMMLIB)/tx_dm4_msg.o                   \
                        $(P2LIB)/tx_dm5_msg.o                      \
                        $(P2LIB)/tx_dm8_msg.o                      \
                        $(P2LIB)/tx_dm10_msg.o                     \
                        $(P2LIB)/tx_ebc1_msg.o                     \
                        $(JCOMMLIB)/tx_eec1_msg.o		\
                        $(JCOMMLIB)/tx_eec2_msg.o               \
                        $(P2LIB)/tx_eec3_msg.o          \
                        $(JCOMMLIB)/tx_eng_fluid_level_press_msg.o         \
                        $(JCOMMLIB)/tx_eng_fluid_press_n2_msg.o         \
                        $(JCOMMLIB)/tx_engine_cfg_msg.o            \
                        $(JCOMMLIB)/tx_engine_hours_msg.o             \
                        $(JCOMMLIB)/tx_engine_temperature_msg.o            \
                        $(P2LIB)/tx_erc1_msg.o          \
                        $(P2LIB)/tx_fan_drive_msg.o                \
                        $(JCOMMLIB)/tx_fuel_consumption_msg.o              \
                        $(JCOMMLIB)/tx_fuel_info_msg.o          \
                        $(P2LIB)/tx_idle_operation_msg.o                \
                        $(JCOMMLIB)/tx_inlet_exhaust_conditions_msg.o              \
                        $(JCOMMLIB)/tx_power_takeoff_info_msg.o      \
                        $(P2LIB)/tx_retarder_cfg_msg.o          \
                        $(JCOMMLIB)/tx_shutdown_msg.o      \
                        $(P2LIB)/tx_vehicle_distance_msg.o              \
                        $(P2LIB)/tx_vehicle_electric_power_msg.o                \
                        $(P2LIB)/tx_vehicle_id_msg.o               \
                        $(P2LIB)/tx_water_in_fuel_msg.o            \
                        $(P2LIB)/update_ecm_run_time.o          \
                        $(P2LIB)/user_fueling.o         \
                        $(P2LIB)/valid_address.o                \
                        $(P2LIB)/wait.o         \
                        $(APPLIB)/wet_stack.o       \
      		        $(HPILIB)/hpi_ccx.o						\
			$(HPILIB)/hpi_epc.o						\
			$(HPILIB)/hpi_epd.o						\
			$(HPILIB)/hpi_fso.o						\
			$(HPILIB)/hpi_ptx.o						\
			$(HPILIB)/hpi_state.o						\
			$(HPILIB)/hpi_tpa.o						\
			$(HPILIB)/hpi_xga.o						\
			$(HPILIB)/hpi_xsd.o						\
			$(HPILIB)/hpi_xtc.o						\
                        $(HPILIB)/pump_inrange_diag.o                                   \
                        $(APPLIB)/tta_min_fuel_adj/tta_min_fuel_adj.o                   \
			$(INDLIB)/eng_startup_limiting/eng_startup_limiting.o		\
			$(INDLIB)/fuel_rate_log/fuel_rate_log.o 			\
                        $(INDLIB)/alt_torque_fuel/alt_torq_eng_cfg.o                    \
			$(INDLIB)/alt_torque_fuel/alt_torque_fuel.o			\
		        $(INDLIB)/automatic_idle_speed_setting/automatic_idle_speed_setting.o		\
			$(INDLIB)/aux_speed_governor/axg.o				\
			$(INDLIB)/aux_speed_governor/axg_speed.o			\
			$(CINDLIB)/dc_monitor/dc_monitor.o				\
			$(INDLIB)/deceleration_throttle/deceleration_throttle.o         \
			$(INDLIB)/ded_pwm/dedicated_pwm.o				\
			$(INDLIB)/dual_output/dual_output.o				\
                        $(APPLIB)/dual_output_app_initialize.o              \
                        $(APPLIB)/oem_ad_out_of_range.o                     \
			$(APPLIB)/electronic_fan_clutch.o		\
			$(INDLIB)/electronic_fan_clutch/electronic_fan_clutch_app_initialize.o		\
			$(APPLIB)/ether_injection.o                     \
                        $(INDLIB)/frequency_throttle/frequency_throttle.o               \
			$(INDLIB)/hot_shutdown_mon/hot_shutdown_mon.o                   \
                        $(INDLIB)/hybrid_governor/hybrid_governor.o                     \
			$(INDLIB)/idle_shutdown/idle_shutdown_intf.o    		\
			$(INDLIB)/industrial_throttle/industrial_throttle.o		\
			$(APPLIB)/low_oil_sensor.o			\
			$(INDLIB)/mult_sync/mult_unit_sync.o				\
			$(INDLIB)/mult_throttle/multiple_throttle_multiplexer.o 	\
			$(APPLIB)/oil_ch_mon.o				\
			$(INDLIB)/pto_status/pto_status.o				\
			$(INDLIB)/pwm_process/pwm_process.o				\
			$(INDLIB)/remote_throttle/remote_throttle.o			\
			$(INDLIB)/sw_alt_low_idle/sw_alt_low_idle.o			\
			$(INDLIB)/switched_droop/switched_droop.o                      \
                        $(INDLIB)/throttle_activated_diagnostics/throttle_activated_diagnostics.o     \
			$(INDLIB)/tran_det_by_spd_derivative/tran_det_by_spd_derivative.o    \
			$(INDLIB)/transient_timing_advance/transient_timing_advance.o        \
                        $(INDLIB)/transmission_synch/transmission_synch.o


#
# Removed objects
#
#                        $(P2LIB)/lsg_gear_gain.o                \
#                        $(P2LIB)/ti_base.o                         \

#
# FLASH3_CODE_BLOCK_DEPENDS_OBJECTS lists all of the object files
# that will be used in the linking stage to generate the code block object file.
#

#FLASH3_CODE_BLOCK_DEPENDS_OBJECTS=
#
# FINAL_LINK_DEPENDS_TOOLS should list the lnk68k linker tool so that if
# the tool is updated, so is the FINAL_LINK.
#

FINAL_LINK_DEPENDS_TOOLS=$(LNK)


#
# FINAL_LINK_DEPENDS_OBJECTS should list all of the object files
# that will be used in the linking stage to generate the final output files.
#

FINAL_LINK_DEPENDS_OBJECTS=     $(P2LIB)/adjustable_parameter_limits.o    \
                                $(P2LIB)/boot_loader.o                    \
                                $(P2LIB)/calibrations.o                   \
                                $(BLDLIB)/$(PROJ)_Code_Block.o            \
                                $(P2LIB)/eeprom.o                         \
                                $(P2LIB)/fixed_downloaded_parameters.o    \
                                $(P2LIB)/flash3_code_start.o              \
                                $(P2LIB)/flash_code_end.o                 \
                                $(P2LIB)/global.o                         \
                                $(P2LIB)/index_table.o                    \
                                $(P2LIB)/name_table.o                     \
                                $(P2LIB)/non_dwn_loaded_eeprom.o          \
                                $(P2LIB)/non_dwn_loaded_parameter_block.o \
                                $(P2LIB)/parameter_block.o                \
                                $(P2LIB)/ram_image.o                      \
                                $(P2LIB)/version.o



#
# TOOLLIB_DEPENDS should list all of the tools in TOOLLIB that the
# CM5xx building might depend on.
#

TOOLLIB_DEPENDS=        $(TOOLLIB)/calibration_crc.bin  \
                        $(TOOLLIB)/GCC                  \
                        $(TOOLLIB)/makeconf.awk         \
                        $(TOOLLIB)/mint

#
# C_SOURCE_VARIABLE_OPTIONS is the code and const defintions variable.
# It will default to the standard ?*.c rule and any specific .c file
# will override the default with its own code/const definition.
#
C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS) $(C_SOURCE_FLASH3_CODE_OPTIONS)

$(P2LIB)/adjustable_parameter_limits.o    := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/boot_loader.o                    := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH0_CONST_OPTIONS)
$(P2LIB)/calibrations.o                   := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/eeprom.o                         := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_DLEE_CONST_OPTIONS)
$(P2LIB)/fixed_downloaded_parameters.o    := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/flash3_code_start.o              := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/flash_code_end.o                 := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/index_table.o                    := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/name_table.o                     := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/non_dwn_loaded_eeprom.o          := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_NDLEE_CONST_OPTIONS)
$(P2LIB)/non_dwn_loaded_parameter_block.o := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_NDLFLASH1_CONST_OPTIONS)
$(P2LIB)/parameter_block.o                := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_DLFLASH1_CONST_OPTIONS)
$(P2LIB)/version.o                        := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS)
$(P2LIB)/flash_utils.o                    := C_SOURCE_FLASH3_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_CONST_OPTIONS) $(C_SOURCE_FLASH3_CODE_OPTIONS) -Mcp


#
# This block selects the variable options to be used depending
# on if the object is in the list for FLASH3, FLASH4, or is
# a FINAL_LINK dependent object.  If there is a default set
# of options to be specified if the object being built is not
# in any of the three lists (should never happen ) then the
# line below should be add to set the default options.
#
# C_SOURCE_ACTUAL_VARIABLE_OPTIONS=Default Options if any
#

$(FLASH3_CODE_BLOCK_DEPENDS_OBJECTS)	:= C_SOURCE_ACTUAL_VARIABLE_OPTIONS=$(C_SOURCE_FLASH3_VARIABLE_OPTIONS)
$(FINAL_LINK_DEPENDS_OBJECTS)		:= C_SOURCE_ACTUAL_VARIABLE_OPTIONS=$(C_SOURCE_VARIABLE_OPTIONS)
