add a hello.c examples w/ binaries
This commit is contained in:
parent
4f50662382
commit
470087d063
4 changed files with 20 additions and 0 deletions
13
hello/Makefile
Normal file
13
hello/Makefile
Normal 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
BIN
hello/hello
Executable file
Binary file not shown.
BIN
hello/hello-gcc
Executable file
BIN
hello/hello-gcc
Executable file
Binary file not shown.
7
hello/hello.c
Normal file
7
hello/hello.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, const char **argv) {
|
||||||
|
puts("Hello, world!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue