#!/bin/sh # # Script to compile "debie1" on the host Intel/Linux system # using the target-specific code for mpc5554/gcc. This is # meant to check that the MPC5554 port has no target-specific # behaviour and (by default) no output; it does not generate # an executable for the MPC5554. # # Any command-line arguments go into the CCOPT (eg. -Wpadded). # As default, the trace output from the harness and target # modules are disabled. # Set tpd to the Test Program Directory: tpd=../.. # Set hnd to the "harness" directory: hnd=${tpd}/harness # Native gcc and options: export CC="gcc" export CCOPT="-g -O2 -I. -I${hnd} -Wall $*" export LD="gcc" export LDOPT= ${CC} ${CCOPT} -c ${tpd}/class.c ${CC} ${CCOPT} -c ${tpd}/classtab.c ${CC} ${CCOPT} -c ${tpd}/debie.c ${CC} ${CCOPT} -c -I${tpd} ${hnd}/harness.c ${CC} ${CCOPT} -c ${tpd}/health.c ${CC} ${CCOPT} -c ${tpd}/hw_if.c ${CC} ${CCOPT} -c ${tpd}/measure.c ${CC} ${CCOPT} -c -I${tpd} target.c ${CC} ${CCOPT} -c ${tpd}/tc_hand.c ${CC} ${CCOPT} -c ${tpd}/telem.c ${CC} ${LDOPT} \ -o debie1 \ class.o \ classtab.o \ debie.o \ harness.o \ health.o \ hw_if.o \ measure.o \ target.o \ tc_hand.o \ telem.o