commit f8e9c32b4b867ba4f7c43be6e65024f2c4f85edd Author: nganhkhoa Date: Thu May 15 21:29:37 2025 +0700 init 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"); +}