From f8e9c32b4b867ba4f7c43be6e65024f2c4f85edd Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Thu, 15 May 2025 21:29:37 +0700 Subject: [PATCH] init --- .gitignore | 1 + Makefile | 13 +++++++++++++ test.c | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 test.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d037b98 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +command-capture diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..935368d --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: command-capture run + +command-capture: main.c + clang -O2 -o command-capture main.c + +run: execap + rm -rf test + ./command-capture `which clang` -o test test.c + +clean: + rm -rf command-capture test + +.PHONY: all execap clean diff --git a/test.c b/test.c new file mode 100644 index 0000000..b329539 --- /dev/null +++ b/test.c @@ -0,0 +1,4 @@ +#include +int main() { + printf("hello world\n"); +}