Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
################################################################################ Copyright (c) 1996-2008 ERG Transit Systems.## File: TOOLSET/ACEX.rul[e]# Contents: ACEX rules as used for the Fairchild ACE compiler# Make rules and recipes for the ACE tools.## Description:# This file provides Toolset rules for the target makefiles# The file is dropped into the target makefile################################################################################################################################################################.. Parse user options# Global options already parsed# These options extend the global options#ifdef OPTIONSendif################################################################################.. Assembler definition## Assembler command line# filename - Without an ASM suffix# No flags, no switches## Output files are in the same directory as the source## Operation:# Copy/Rename the one source file into the output (BIN) directory# The source file will be renamed to that of the output file# Invoke the assembler# Check success##as = $(XX_PRE) "$(acex_assembler)"as_init =as_o_switch =as_source = $(basename $@)as_flags =define as_pre@$(echo) [$@] Assembling file$(XX_PRE) cp $< $(basename $@).asmendef## Assembler exit code is unreliable# Test for non-zero length output file and remove if it is zero-length#define as_postif [ ! -s $@ ] ; then rm -f $@; exit 1; fiendef#