Subversion Repositories DevTools

Rev

Rev 5709 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5709 Rev 6177
Line 1... Line 1...
1
###############################################################################
1
###############################################################################
2
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
3
#
3
#
4
# File:         TOOLSET/m16c.rul[e]
4
# File:         TOOLSET/m16c.rul[e]
5
# Contents:     m16c rules
5
# Contents:     m16c rules
6
#               Make definitions for the m16c tools.
6
#               Make definitions for the m16c tools.
7
#
7
#
Line 105... Line 105...
105
 
105
 
106
cc_opts       += -D__SOURCE__=$(notdir $<)
106
cc_opts       += -D__SOURCE__=$(notdir $<)
107
 
107
 
108
cc_includes    = $(patsubst %,-I%,$(INCDIRS))
108
cc_includes    = $(patsubst %,-I%,$(INCDIRS))
109
 
109
 
110
cc_pre = @$(echo) [$<] compiling..
110
cc_pre = @$(echo) '[$<] compiling..'
111
cc_post =
111
cc_post =
112
 
112
 
113
###############################################################################
113
###############################################################################
114
#	Compiler sanity test
114
#	Compiler sanity test
115
#	It can only handle 16 include paths
115
#	It can only handle 16 include paths
Line 167... Line 167...
167
as_flags       += -DKD30=0
167
as_flags       += -DKD30=0
168
endif
168
endif
169
 
169
 
170
#as_flags       += $(patsubst %,-I%,$(INCDIRS))
170
#as_flags       += $(patsubst %,-I%,$(INCDIRS))
171
 
171
 
172
as_pre          = @$(echo) [$@] Assembling file ...
172
as_pre          = @$(echo) '[$@] Assembling file ...'
173
as_post         =
173
as_post         =
174
 
174
 
175
 
175
 
176
#..     Archiver
176
#..     Archiver
177
#
177
#
Line 180... Line 180...
180
ar_cmdfile      = $(basename $@).ar
180
ar_cmdfile      = $(basename $@).ar
181
ar_flags        =
181
ar_flags        =
182
ar_o_switch     = @$(ar_cmdfile)
182
ar_o_switch     = @$(ar_cmdfile)
183
 
183
 
184
define ar_pre
184
define ar_pre
185
        @$(echo) [\$@] Creating library archive.. ; \
185
        @$(echo) '[$@] Creating library archive..' ; \
186
        $(rm) -f $@ ;\
186
        $(rm) -f $@ ;\
187
        $(cmdfile) -ko$(ar_cmdfile) \
187
        $(cmdfile) -ko$(ar_cmdfile) \
188
                -. -C $@\\n\
188
                -. -C $@\\n\
189
                $(subst /,\\\\,$(patsubst %,%\\n,$(filter %.R30, $^)))\
189
                $(subst /,\\\\,$(patsubst %,%\\n,$(filter %.R30, $^)))\
190
                \\n
190
                \\n
Line 211... Line 211...
211
ld_cmdfile      = $(basename $@).ld
211
ld_cmdfile      = $(basename $@).ld
212
ld_flags        = @$(ld_cmdfile)
212
ld_flags        = @$(ld_cmdfile)
213
ld_o_switch     =
213
ld_o_switch     =
214
 
214
 
215
define ld_pre
215
define ld_pre
216
        $(echo) [$@] Linking program .. ;\
216
        $(echo) '[$@] Linking program ..' ;\
217
        export M16C_LIB; \
217
        export M16C_LIB; \
218
                M16C_LIB="$(subst /,\\,$(subst $(space),;,$(LIBDIRS)))"; \
218
                M16C_LIB="$(subst /,\\,$(subst $(space),;,$(LIBDIRS)))"; \
219
        $(cmdfile) -ko$(ld_cmdfile) "$($(notdir $(SHBASE))_ld)"
219
        $(cmdfile) -ko$(ld_cmdfile) "$($(notdir $(SHBASE))_ld)"
220
endef
220
endef
221
 
221