#
# CCDIRECTIVES .. directives to pass to C166 compiler
# LIDIRECTIVES .. directives to pass to L166 linker
+# ASDIRECTIVES .. directives to pass to A166 assembler
# Rules for compilation of C, C++ and assembler sources using Keil's
# (X)C16x tools. For documentation see gcc snippet.
define COMPILE_S_o_template
$(2): $(1) $(LOCAL_CONFIG_H)
@$(QUIET_CMD_ECHO) " ASM $$@"
- $(Q) \
- cp $$< .; \
- if [ -f $(SOURCES_DIR)/reg1210.inc ] ; then \
- cp $(SOURCES_DIR)/reg1210.inc .; \
- fi;\
- $$(AS) $(2:%$(OBJ_EXT)=%.asm)
+ $(Q)$$(AS) '$$(shell cygpath -w $(1))' 'OBJECT($$@)' 'PRINT($$(@:%$$(OBJ_EXT)=%.lst))' '$$(ASDIRECTIVES)'
endef