add a hello.c examples w/ binaries

This commit is contained in:
brooke 2025-12-26 19:50:36 -08:00
commit 470087d063
4 changed files with 20 additions and 0 deletions

13
hello/Makefile Normal file
View file

@ -0,0 +1,13 @@
.FAKE: all clean test
all: hello
clean:
rm -f hello
hello: hello.c
musl-gcc -static -O2 -o hello hello.c
test: hello
./hello

BIN
hello/hello Executable file

Binary file not shown.

BIN
hello/hello-gcc Executable file

Binary file not shown.

7
hello/hello.c Normal file
View file

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, const char **argv) {
puts("Hello, world!\n");
return 0;
}