Corrected problem in Makefile snippets for assembly
This commit is contained in:
parent
fc9dcc1441
commit
73be9d0cb1
|
@ -66,3 +66,14 @@ pop edx
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet gcc_function "GCC conform function implementation" b
|
||||||
|
$1:
|
||||||
|
push %ebp
|
||||||
|
mov %esp, %ebp
|
||||||
|
|
||||||
|
$2
|
||||||
|
|
||||||
|
mov %ebp, %esp
|
||||||
|
pop %ebp
|
||||||
|
ret
|
||||||
|
endsnippet
|
||||||
|
|
|
@ -81,7 +81,7 @@ endsnippet
|
||||||
|
|
||||||
snippet buildobj "Build an executable from object files." b
|
snippet buildobj "Build an executable from object files." b
|
||||||
${1:\$(BIN)}: ${2:\$(OBJECTS)}
|
${1:\$(BIN)}: ${2:\$(OBJECTS)}
|
||||||
${3:\$(LD)} -o \$@ \$^
|
${3:\$(CC)} -o \$@ \$^ ${4:\$(LDFLAGS)}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet ctoobj "Build object from C file." b
|
snippet ctoobj "Build object from C file." b
|
||||||
|
@ -96,12 +96,12 @@ endsnippet
|
||||||
|
|
||||||
snippet astoobj "Build object from assembly file." b
|
snippet astoobj "Build object from assembly file." b
|
||||||
%.o: ${1:\$(ASFDIR)}%.S
|
%.o: ${1:\$(ASFDIR)}%.S
|
||||||
${2:\$(AS)} ${3:\$(CFLAGS)} -o \$@ -c \$<
|
${2:\$(AS)} ${3:\$(ASFLAGS)} -o \$@ -c \$<
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet asmtoobj "Build object from assembly file." b
|
snippet asmtoobj "Build object from assembly file." b
|
||||||
%.o: ${1:\$(ASFDIR)}%.asm
|
%.o: ${1:\$(ASFDIR)}%.asm
|
||||||
${2:\$(AS)} ${3:\$(CFLAGS)} -o \$@ -c \$<
|
${2:\$(AS)} ${3:\$(ASFLAGS)} -o \$@ -c \$<
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet rule "Add new Rule"
|
snippet rule "Add new Rule"
|
||||||
|
|
Loading…
Reference in New Issue