This commit is contained in:
nganhkhoa 2025-05-15 21:29:37 +07:00
commit f8e9c32b4b
3 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
command-capture

13
Makefile Normal file
View File

@ -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

4
test.c Normal file
View File

@ -0,0 +1,4 @@
#include <stdio.h>
int main() {
printf("hello world\n");
}