Corrected problem in Makefile snippets for assembly

This commit is contained in:
Yannick Reiß 2023-10-08 08:59:18 +02:00
parent fc9dcc1441
commit 73be9d0cb1
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
2 changed files with 23 additions and 12 deletions

View File

@ -66,3 +66,14 @@ pop edx
$0
endsnippet
snippet gcc_function "GCC conform function implementation" b
$1:
push %ebp
mov %esp, %ebp
$2
mov %ebp, %esp
pop %ebp
ret
endsnippet

View File

@ -81,7 +81,7 @@ endsnippet
snippet buildobj "Build an executable from object files." b
${1:\$(BIN)}: ${2:\$(OBJECTS)}
${3:\$(LD)} -o \$@ \$^
${3:\$(CC)} -o \$@ \$^ ${4:\$(LDFLAGS)}
endsnippet
snippet ctoobj "Build object from C file." b
@ -96,12 +96,12 @@ endsnippet
snippet astoobj "Build object from assembly file." b
%.o: ${1:\$(ASFDIR)}%.S
${2:\$(AS)} ${3:\$(CFLAGS)} -o \$@ -c \$<
${2:\$(AS)} ${3:\$(ASFLAGS)} -o \$@ -c \$<
endsnippet
snippet asmtoobj "Build object from assembly file." b
%.o: ${1:\$(ASFDIR)}%.asm
${2:\$(AS)} ${3:\$(CFLAGS)} -o \$@ -c \$<
${2:\$(AS)} ${3:\$(ASFLAGS)} -o \$@ -c \$<
endsnippet
snippet rule "Add new Rule"