mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
19 lines
311 B
Makefile
19 lines
311 B
Makefile
|
|
all: out
|
|
|
|
out: entry.o out.o lib.o
|
|
gcc $^ -o $@ -no-pie
|
|
|
|
%.o: %.c
|
|
gcc -c -o $@ -std=c17 -Wall -Wextra -Wpedantic -pedantic -pedantic-errors $^
|
|
|
|
%.o: %.nasm
|
|
nasm -f elf64 $< -o $@
|
|
|
|
out.nasm: program.sbl
|
|
deno run --allow-read --allow-write --check main.ts $<
|
|
|
|
clean:
|
|
rm -rf out.asm out.o lib.o entry.o out
|
|
|