Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
259 dpurdie 1
###############################################################################
5709 dpurdie 2
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
259 dpurdie 3
#
4
# File:         TOOLSET/ACEX.rul[e]
5
# Contents:     ACEX rules as used for the Fairchild ACE compiler
6
#               Make rules and recipes for the ACE tools.
7
#
8
# Description:
9
#       This file provides Toolset rules for the target makefiles
10
#       The file is dropped into the target makefile
11
#
12
###############################################################################
13
 
14
###############################################################################
15
#..     Parse user options
16
#       Global options already parsed
17
#       These options extend the global options
18
#
19
ifdef OPTIONS
20
endif
21
 
22
###############################################################################
23
#..     Assembler definition
24
#
25
#       Assembler command line
26
#           filename		- Without an ASM suffix
27
#				  No flags, no switches
28
#
29
#	Output files are in the same directory as the source
30
#
31
#       Operation:
32
#		Copy/Rename the one source file into the output (BIN) directory
33
#		The source file will be renamed to that of the output file
34
#		Invoke the assembler
35
#		Check success
36
#
37
#
38
as              = $(XX_PRE) "$(acex_assembler)"
39
as_init         =
40
as_o_switch     =
41
as_source       = $(basename $@)
42
as_flags        =
43
 
44
define as_pre
45
    @$(echo) [$@] Assembling file
46
    $(XX_PRE) cp $< $(basename $@).asm
47
endef
48
 
49
#
50
# Assembler exit code is unreliable
51
# Test for non-zero length output file and remove if it is zero-length
52
#
53
define as_post
54
	if [ ! -s $@ ] ; then rm -f $@; exit 1; fi
55
endef
56
 
57
#