summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-09-30 12:37:06 +1300
committerArslaan Pathan <[email protected]>2026-09-30 12:39:55 +1300
commit7e9043d484c30d018a012f835dda5eae9fa17860 (patch)
treed44842c091e6cfa48d16062cfc96bf31bdb2d760 /Makefile
parent2bb4f7e34806054fa15174b2586241c2b82e040c (diff)
downloadx86-asm-7e9043d484c30d018a012f835dda5eae9fa17860.tar.xz
x86-asm-7e9043d484c30d018a012f835dda5eae9fa17860.zip
idk whats even in this commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0b1c9ea
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+.PHONY: all clean
+
+all: main curl_test loop
+
+loop.o:
+ nasm -f elf64 loop.asm -o loop.o
+
+loop: loop.o
+ gcc loop.o -o loop
+
+main.o:
+ nasm -f elf64 main.asm -o main.o
+
+main: main.o
+ gcc main.o -o main
+
+curl_test.o:
+ nasm -f elf64 curl_test.asm -o curl_test.o
+
+curl_test: curl_test.o
+ gcc curl_test.o -lcurl -o curl_test
+
+clean:
+ rm curl_test.o curl_test main.o main loop.o loop