From ac56b95906a2ccf2bf762b6fbf1b8e153c41037e Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 15 Jun 2026 21:58:59 +0200 Subject: Makefile and Git ignore build output Signed-off-by: Mel --- .gitignore | 4 ++++ Makefile | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acfa597 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +vcpu_steal +*.o +*.swp +*~ 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) -- cgit 1.4.1