diff options
| author | Mel <mel@rnrd.eu> | 2026-06-15 21:58:59 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-06-15 22:37:08 +0200 |
| commit | ac56b95906a2ccf2bf762b6fbf1b8e153c41037e (patch) | |
| tree | d89b861a41050912d3ab53677043cecb71502622 | |
| parent | 1ea9aed16053cd4b5dbffbef69fb68b0f6fabddd (diff) | |
| download | vcpu_steal-ac56b95906a2ccf2bf762b6fbf1b8e153c41037e.tar.zst vcpu_steal-ac56b95906a2ccf2bf762b6fbf1b8e153c41037e.zip | |
Makefile and Git ignore build output
Signed-off-by: Mel <mel@rnrd.eu>
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | Makefile | 19 |
2 files changed, 23 insertions, 0 deletions
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) |
