]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fixed assembler compilation in keil166.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Aug 2006 19:25:00 +0000 (19:25 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Aug 2006 19:25:00 +0000 (19:25 +0000)
darcs-hash:20060803192547-f2ef6-1b5abcc26644f0a111d8c388baf1cda34d3c10e5.gz

snippets/keil16x

index b8f4ecf8579c64a6752fb02bbc9d086f16279dfd..31dce4d0dd27599af335f09be64cac02b36b10f0 100644 (file)
@@ -3,6 +3,7 @@
 #
 # 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.
@@ -63,12 +64,7 @@ endef
 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