aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/makefile b/makefile
index e7e2ee3..a2bec28 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,11 @@
-SRC = sort.asm
-OBJ = sort.o
+all: asm
-all:
- @nasm -f elf64 -o $(OBJ) $(SRC)
- @gcc -no-pie -o sort $(OBJ)
+asm:
+ @nasm -f elf64 -o sort.o sort.asm
+ @nasm -f elf64 -o data.o data.asm
+ @gcc -no-pie -o sort data.o sort.o
+
+c:
+ @nasm -f elf64 -o data.o data.asm
+ @gcc -no-pie -c -o csort.o benchmark/sort.c
+ @gcc -no-pie -o csort data.o csort.o