about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-06-15 21:58:59 +0200
committerMel <mel@rnrd.eu>2026-06-15 22:37:08 +0200
commitac56b95906a2ccf2bf762b6fbf1b8e153c41037e (patch)
treed89b861a41050912d3ab53677043cecb71502622 /Makefile
parent1ea9aed16053cd4b5dbffbef69fb68b0f6fabddd (diff)
downloadvcpu_steal-ac56b95906a2ccf2bf762b6fbf1b8e153c41037e.tar.zst
vcpu_steal-ac56b95906a2ccf2bf762b6fbf1b8e153c41037e.zip
Makefile and Git ignore build output
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fbabe14
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC      ?= cc
+CFLAGS  ?= -O2 -Wall -Wextra
+LDFLAGS ?=
+
+TARGET  = vcpu_steal
+SOURCE  = vcpu_steal.c
+
+.PHONY: all run clean
+
+all: $(TARGET)
+
+$(TARGET): $(SOURCE)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+run: $(TARGET)
+	./$(TARGET)
+
+clean:
+	rm -f $(TARGET)